(available-zone-ids)
Returns a set of string identifiers for all available ZoneIds.
Returns a set of string identifiers for all available ZoneIds.
(clock? x)
Returns true if x
is an instance of java.time.Clock
.
Returns true if `x` is an instance of `java.time.Clock`.
(fixed-clock)
(fixed-clock i)
(fixed-clock i z)
Creates a fixed clock either at the current instant or at the supplied instant/instant + zone.
Creates a fixed clock either at the current instant or at the supplied instant/instant + zone.
(with-offset o offset)
Sets the offset to the specified value ensuring that the local time stays the same.
(offset-time 10 30 0 0 +2) => #<java.time.OffsetTime 10:30+02:00> (with-offset *1 +3) => #<java.time.OffsetTime 10:30+03:00>
Sets the offset to the specified value ensuring that the local time stays the same. (offset-time 10 30 0 0 +2) => #<java.time.OffsetTime 10:30+02:00> (with-offset *1 +3) => #<java.time.OffsetTime 10:30+03:00>
(with-offset-same-instant o offset)
Sets the offset to the specified value ensuring that the result has the same instant, e.g.:
(offset-time 10 30 0 0 +2) => #<java.time.OffsetTime 10:30+02:00> (with-offset-same-instant *1 +3) => #<java.time.OffsetTime 11:30+03:00>
Sets the offset to the specified value ensuring that the result has the same instant, e.g.: (offset-time 10 30 0 0 +2) => #<java.time.OffsetTime 10:30+02:00> (with-offset-same-instant *1 +3) => #<java.time.OffsetTime 11:30+03:00>
(offset-clock d)
(offset-clock c d)
Creates a clock offset from the current/provided clock by a given
duration
.
Creates a clock offset from the current/provided clock by a given `duration`.
(offset-date-time)
(offset-date-time arg_1_3491)
(offset-date-time arg_1_3492 arg_2_3493)
(offset-date-time arg_1_3494 arg_2_3495 arg_3_3496)
(offset-date-time y m d h)
(offset-date-time y mo d h m)
(offset-date-time y mo d h m s)
(offset-date-time y mo d h m s n)
(offset-date-time y mo d h m s n o)
Creates an OffsetDateTime
. The following arguments are supported:
If zone offset is not specified, default will be used. You can check the
default offset by invoking (zone-offset)
.
Creates an `OffsetDateTime`. The following arguments are supported: * no arguments - current date-time with the default offset * one argument + clock + zone offset + another temporal entity + string representation + year * two arguments + formatter (format) and a string + local date-time and an offset + another temporal entity and an offset (preserves local time) + year and month * three arguments + local date, local time and an offset + year, month and date * four up to seven arguments - position date-time constructors * eight arguments - time fields up to nanoseconds and a zone offset If zone offset is not specified, default will be used. You can check the default offset by invoking `(zone-offset)`.
(offset-date-time? v__2346__auto__)
True if an instance of OffsetDateTime.
True if an instance of OffsetDateTime.
(offset-time)
(offset-time arg_1_3531)
(offset-time arg_1_3532 arg_2_3533)
(offset-time h m s)
(offset-time h m s n)
(offset-time h m s n o)
Creates an OffsetTime
. The following arguments are supported:
If zone offset is not specified, default will be used. You can check the
default offset by invoking (zone-offset)
.
Creates an `OffsetTime`. The following arguments are supported: * no arguments - current time with the default offset * one argument + clock + zone id + another temporal entity + string representation + hour * two arguments + formatter (format) and a string + local time and an offset + instant and an offset + hour and minutes * three arguments - hours, minutes, seconds * four arguments - hours, minutes, seconds, nanos * five arguments - last is the offset If zone offset is not specified, default will be used. You can check the default offset by invoking `(zone-offset)`.
(offset-time? v__2346__auto__)
True if an instance of OffsetTime.
True if an instance of OffsetTime.
(system-clock)
(system-clock k)
Creates a system clock. In the default timezone if called without arguments, otherwise accepts a Zone Id.
Creates a system clock. In the default timezone if called without arguments, otherwise accepts a Zone Id.
(tick-clock d)
(tick-clock c d)
Creates a clock wrapping system/provided clock that only ticks as per specified duration.
Creates a clock wrapping system/provided clock that only ticks as per specified duration.
(with-zone-same-instant zdt z)
Sets the zone to the specified value ensuring that the result has the same instant, e.g.:
(zoned-date-time 2015) => #<java.time.ZonedDateTime 2015-01-01T00:00+00:00[Europe/London]> (with-zone-same-instant *1 "America/New_York") => #<java.time.ZonedDateTime 2014-12-31T18:00-05:00[America/New_York]>
Sets the zone to the specified value ensuring that the result has the same instant, e.g.: (zoned-date-time 2015) => #<java.time.ZonedDateTime 2015-01-01T00:00+00:00[Europe/London]> (with-zone-same-instant *1 "America/New_York") => #<java.time.ZonedDateTime 2014-12-31T18:00-05:00[America/New_York]>
(zone-id)
(zone-id arg_1_3463)
(zone-id arg_1_3464 arg_2_3465)
Creates a ZoneId
from a string identifier, java.util.TimeZone
or extracts
from another temporal entity.
Returns default system zone id if no arguments provided.
Given two arguments will use the second as the offset.
Creates a `ZoneId` from a string identifier, `java.util.TimeZone` or extracts from another temporal entity. Returns default system zone id if no arguments provided. Given two arguments will use the second as the offset.
(zone-id? v__2346__auto__)
True if an instance of ZoneId.
True if an instance of ZoneId.
(zone-offset)
(zone-offset o)
(zone-offset h m)
(zone-offset h m s)
Creates a ZoneOffset
from a string identifier (e.g. "+01"), a number of
hours/hours and minutes/hours, minutes and seconds or extracts from another
temporal entity.
Returns default system zone offset if no arguments provided.
Creates a `ZoneOffset` from a string identifier (e.g. "+01"), a number of hours/hours and minutes/hours, minutes and seconds or extracts from another temporal entity. Returns default system zone offset if no arguments provided.
(zone-offset? v__2346__auto__)
True if an instance of ZoneOffset.
True if an instance of ZoneOffset.
(zoned-date-time)
(zoned-date-time arg_1_3558)
(zoned-date-time arg_1_3559 arg_2_3560)
(zoned-date-time arg_1_3561 arg_2_3562 arg_3_3563)
(zoned-date-time y m d h)
(zoned-date-time y mo d h m)
(zoned-date-time y mo d h m s)
(zoned-date-time y mo d h m s n)
(zoned-date-time y mo d h m s n o)
Creates a ZonedDateTime
. The following arguments are supported:
If zone id is not specified, default zone id will be used. You can check the
default zone by invoking (zone-id)
.
Creates a `ZonedDateTime`. The following arguments are supported: * no arguments - current date-time in the default zone * one argument + clock + zone id + another temporal entity + string representation + year * two arguments + formatter and a string + local date-time and a zone id + year and month * three arguments + local date, local time and a zone id + year, month and day * four to seven arguments - date-time fields * eight arguments - last is the zone id If zone id is not specified, default zone id will be used. You can check the default zone by invoking `(zone-id)`.
(zoned-date-time? v__2346__auto__)
True if an instance of ZonedDateTime.
True if an instance of ZonedDateTime.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close