Liking cljdoc? Tell your friends :D

java-time.zone


available-zone-ids

(available-zone-ids)
source

clock?

(clock? x)

Returns true if x is an instance of java.time.Clock.

Returns true if `x` is an instance of `java.time.Clock`.
sourceraw docstring

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

HasOffsetprotocol

with-offset
(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) => nil (with-offset *1 +3) => nil

Sets the offset to the specified value ensuring that the local time stays
the same.

  (offset-time 10 30 0 0 +2)
  => nil
  (with-offset *1 +3)
  => nil

with-offset-same-instant
(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) => nil (with-offset-same-instant *1 +3) => nil

Sets the offset to the specified value ensuring that the result has the same instant, e.g.:

(offset-time 10 30 0 0 +2)
=> nil
(with-offset-same-instant *1 +3)
=> nil

source

offset-clock

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

offset-date-time

(offset-date-time)
(offset-date-time arg_1_3443)
(offset-date-time arg_1_3444 arg_2_3445)
(offset-date-time arg_1_3446 arg_2_3447 arg_3_3448)
(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:

  • no arguments - current date-time with the default offset
  • one argument
    • clock
    • 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).

Creates an `OffsetDateTime`. The following arguments are supported:

  * no arguments - current date-time with the default offset
  * one argument
    + clock
    + 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)`.
sourceraw docstring

offset-date-time?

(offset-date-time? v__2344__auto__)

True if an instance of OffsetDateTime.

True if an instance of OffsetDateTime.
sourceraw docstring

offset-time

(offset-time)
(offset-time arg_1_3483)
(offset-time arg_1_3484 arg_2_3485)
(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:

  • 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).

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

offset-time?

(offset-time? v__2344__auto__)

True if an instance of OffsetTime.

True if an instance of OffsetTime.
sourceraw docstring

system-clock

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

tick-clock

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

with-zone-same-instant

(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) => nil (with-zone-same-instant *1 "America/New_York") => nil

Sets the zone to the specified value ensuring that the result has the same instant, e.g.:

(zoned-date-time 2015)
=> nil
(with-zone-same-instant *1 "America/New_York")
=> nil
sourceraw docstring

zone-id

(zone-id)
(zone-id arg_1_3415)
(zone-id arg_1_3416 arg_2_3417)

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

zone-id?

(zone-id? v__2344__auto__)

True if an instance of ZoneId.

True if an instance of ZoneId.
sourceraw docstring

zone-offset

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

zone-offset?

(zone-offset? v__2344__auto__)

True if an instance of ZoneOffset.

True if an instance of ZoneOffset.
sourceraw docstring

zoned-date-time

(zoned-date-time)
(zoned-date-time arg_1_3510)
(zoned-date-time arg_1_3511 arg_2_3512)
(zoned-date-time arg_1_3513 arg_2_3514 arg_3_3515)
(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:

  • 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).

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

zoned-date-time?

(zoned-date-time? v__2344__auto__)

True if an instance of ZonedDateTime.

True if an instance of ZonedDateTime.
sourceraw docstring

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

× close