Liking cljdoc? Tell your friends :D

second-date.common


CoerceToLocalecljprotocol

Protocol for anything that can be coerced to a java.util.Locale.

Protocol for anything that can be coerced to a `java.util.Locale`.

localeclj

(locale this)

Coerce this to a java.util.Locale.

Coerce `this` to a `java.util.Locale`.
sourceraw docstring

lower-case-enclj

(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.
sourceraw docstring

normalized-locale-stringclj

(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.
sourceraw docstring

standard-offsetclj

(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).
sourceraw docstring

static-instancesclj

(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.
sourceraw docstring

temporal-fieldclj

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.
sourceraw docstring

upper-case-enclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close