Liking cljdoc? Tell your friends :D

clj-cbor.tags.time

Built-in tag support for the time extensions in RFC 7049. See section 2.4.1.

This namespace offers interop with both the older java.util.Date class as well as the newer java.time.Instant. Support for both timestamp-based tagged values and the more efficient epoch-based values is included.

Built-in tag support for the time extensions in RFC 7049. See section
2.4.1.

This namespace offers interop with both the older `java.util.Date` class as
well as the newer `java.time.Instant`. Support for both timestamp-based
tagged values and the more efficient epoch-based values is included.
raw docstring

date-read-handlersclj

Map of tag handlers to parse date-times as java.util.Date values.

Map of tag handlers to parse date-times as `java.util.Date` values.
sourceraw docstring

epoch-date-tagclj

Tag value 100 (ASCII 'd') is for numerical representation of the epoch date. The tagged integer is an unsigned or negative value indicating the number of days since the epoch date 1970-01-01.

Tag value 100 (ASCII 'd') is for numerical representation of the epoch date.
The tagged integer is an unsigned or negative value indicating the number of
days since the epoch date 1970-01-01.
sourceraw docstring

epoch-date-write-handlersclj

Map of local-date types to render as numeric epoch offsets.

Map of local-date types to render as numeric epoch offsets.
sourceraw docstring

epoch-time-tagclj

Tag value 1 is for numerical representation of seconds relative to 1970-01-01T00:00Z in UTC time.

The tagged item can be a positive or negative integer (major types 0 and 1), or a floating-point number (major type 7 with additional information 25, 26, or 27). Note that the number can be negative (time before 1970-01-01T00:00Z) and, if a floating-point number, indicate fractional seconds.

Tag value 1 is for numerical representation of seconds relative to
1970-01-01T00:00Z in UTC time.

The tagged item can be a positive or negative integer (major types 0 and 1),
or a floating-point number (major type 7 with additional information 25, 26,
or 27). Note that the number can be negative (time before 1970-01-01T00:00Z)
and, if a floating-point number, indicate fractional seconds.
sourceraw docstring

epoch-time-write-handlersclj

Map of date-time types to render as numeric epoch offsets.

Map of date-time types to render as numeric epoch offsets.
sourceraw docstring

format-date-epochclj

(format-date-epoch value)

Format a java.util.Date as a tagged numeric epoch offset.

Format a `java.util.Date` as a tagged numeric epoch offset.
sourceraw docstring

format-date-stringclj

(format-date-string value)

Format a java.util.Date as a tagged timestamp string.

Format a `java.util.Date` as a tagged timestamp string.
sourceraw docstring

format-instant-epochclj

(format-instant-epoch value)

Format a java.time.Instant as a tagged numeric epoch offset.

Format a `java.time.Instant` as a tagged numeric epoch offset.
sourceraw docstring

format-instant-stringclj

(format-instant-string value)

Format a java.time.Instant as a tagged timestamp string.

Format a `java.time.Instant` as a tagged timestamp string.
sourceraw docstring

format-local-date-epochclj

(format-local-date-epoch value)

Format a java.time.LocalDate as a tagged numeric epoch offset.

Format a `java.time.LocalDate` as a tagged numeric epoch offset.
sourceraw docstring

format-local-date-stringclj

(format-local-date-string value)

Format a java.time.LocalDate as a tagged date string.

Format a `java.time.LocalDate` as a tagged date string.
sourceraw docstring

instant-read-handlersclj

Map of tag handlers to parse date-times as java.time.Instant values.

Map of tag handlers to parse date-times as `java.time.Instant` values.
sourceraw docstring

local-date-read-handlersclj

Map of tag handlers to parse local-dates as java.time.LocalDate values.

Map of tag handlers to parse local-dates as `java.time.LocalDate` values.
sourceraw docstring

parse-epoch-dateclj

(parse-epoch-date value)

Parse a numeric epoch offset into a java.util.Date value.

Parse a numeric epoch offset into a `java.util.Date` value.
sourceraw docstring

parse-epoch-instantclj

(parse-epoch-instant value)

Parse a numeric epoch offset into a java.time.Instant value.

Parse a numeric epoch offset into a `java.time.Instant` value.
sourceraw docstring

parse-epoch-local-dateclj

(parse-epoch-local-date value)

Parse a numeric epoch offset into a java.time.LocalDate value.

Parse a numeric epoch offset into a `java.time.LocalDate` value.
sourceraw docstring

parse-string-dateclj

(parse-string-date value)

Parse a timestamp string into a java.util.Date value.

Parse a timestamp string into a `java.util.Date` value.
sourceraw docstring

parse-string-instantclj

(parse-string-instant value)

Parse a timestamp string into a java.time.Instant value.

Parse a timestamp string into a `java.time.Instant` value.
sourceraw docstring

parse-string-local-dateclj

(parse-string-local-date value)

Parse a date string into a java.time.LocalDate value.

Parse a date string into a `java.time.LocalDate` value.
sourceraw docstring

string-date-tagclj

Tag value 1004 is for date strings that follow the standard format described in RFC3339 "full-date" production.

Tag value 1004 is for date strings that follow the standard format
described in RFC3339 "full-date" production.
sourceraw docstring

string-date-write-handlersclj

Map of local-date types to render as date strings.

Map of local-date types to render as date strings.
sourceraw docstring

string-time-tagclj

Tag value 0 is for date/time strings that follow the standard format described in RFC3339, as refined by Section 3.3 of RFC4287.

Tag value 0 is for date/time strings that follow the standard format
described in RFC3339, as refined by Section 3.3 of RFC4287.
sourceraw docstring

string-time-write-handlersclj

Map of date-time types to render as time strings.

Map of date-time types to render as time strings.
sourceraw docstring

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

× close