Liking cljdoc? Tell your friends :D

dgknght.json

Encode java.time values as strings that can be written as JSON, and decode them again unchanged. Dates and times are ISO-8601 strings, whose form tells which kind they are:

2026-12-01 java.time.LocalDate 2026-12-01T17:00 java.time.LocalDateTime 2026-12-01T17:00:00Z java.time.Instant 2026-12-01T17:00-06:00[America/Chicago] java.time.ZonedDateTime

Encode java.time values as strings that can be written as JSON, and
decode them again unchanged. Dates and times are ISO-8601 strings, whose
form tells which kind they are:

  2026-12-01                                  java.time.LocalDate
  2026-12-01T17:00                            java.time.LocalDateTime
  2026-12-01T17:00:00Z                        java.time.Instant
  2026-12-01T17:00-06:00[America/Chicago]     java.time.ZonedDateTime
raw docstring

decode-timeclj

(decode-time s)

encode-timeclj

(encode-time t)

Writes a ZonedDateTime with its zone ID in brackets even when the zone is an offset, which toString leaves out, so that it can't be mistaken for an Instant.

Writes a ZonedDateTime with its zone ID in brackets even when the zone is
an offset, which toString leaves out, so that it can't be mistaken for an
Instant.
raw docstring

update-keys-inclj

(update-keys-in m ks f)

Updates each of the keys the map has with f.

Updates each of the keys the map has with f.
raw docstring

update-someclj

(update-some m k f)

Updates the key with f only when the map has it.

Updates the key with f only when the map has it.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close