Protocol for anything that can be coerced to a java.util.Locale
.
Protocol for anything that can be coerced to a `java.util.Locale`.
(locale this)
Coerce this
to a java.util.Locale
.
Coerce `this` to a `java.util.Locale`.
(lower-case-en s)
Locale-agnostic version of [[clojure.string/lower-case]]. [[clojure.string/lower-case]] uses the default locale in
conversions, turning ID
into ıd
, in the Turkish locale. This function always uses the en-US
locale.
Locale-agnostic version of [[clojure.string/lower-case]]. [[clojure.string/lower-case]] uses the default locale in conversions, turning `ID` into `ıd`, in the Turkish locale. This function always uses the `en-US` locale.
(normalized-locale-string s)
Normalize a locale string to the canonical format.
(normalized-locale-string "EN-US") ;-> "en_US"
Returns nil
for invalid strings -- you can use this to check whether a String is valid.
Normalize a locale string to the canonical format. (normalized-locale-string "EN-US") ;-> "en_US" Returns `nil` for invalid strings -- you can use this to check whether a String is valid.
(standard-offset zone-id)
Standard (non-DST) offset for a time zone, for cases when we don't have date information. Gets the offset for the
given zone-id
at January 1 of the current year (since that is the best we can do in this situation).
Standard (non-DST) offset for a time zone, for cases when we don't have date information. Gets the offset for the given `zone-id` at January 1 of the current year (since that is the best we can do in this situation).
(static-instances klass)
(static-instances klass target-class)
Utility function to get the static members of a class. Returns map of lisp-case
keyword names of members -> value.
Utility function to get the static members of a class. Returns map of `lisp-case` keyword names of members -> value.
Map of lisp-style-name -> TemporalField for all the various TemporalFields we use in day-to-day parsing and other temporal operations.
Map of lisp-style-name -> TemporalField for all the various TemporalFields we use in day-to-day parsing and other temporal operations.
(upper-case-en s)
Locale-agnostic version of [[clojure.string/upper-case]]. [[clojure.string/upper-case]] uses the default locale in
conversions, turning id
into İD
, in the Turkish locale. This function always uses the en-US
locale.
Locale-agnostic version of [[clojure.string/upper-case]]. [[clojure.string/upper-case]] uses the default locale in conversions, turning `id` into `İD`, in the Turkish locale. This function always uses the `en-US` locale.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close