Timezone
A timezone representation.
name is the timezone abbreviation (e.g. "UTC", "EST").
delta is the offset from UTC in seconds (e.g. -18000l for UTC-5).
dst? indicates whether daylight saving time is active.
=
defn
(Fn [(Ref Timezone a), (Ref Timezone a)] Bool)
(= o1 o2)
copy
instantiate
(Fn [(Ref Timezone a)] Timezone)
copies a Timezone.
delete
instantiate
(Fn [Timezone] ())
deletes a Timezone. Should usually not be called manually.
delta
instantiate
(Fn [(Ref Timezone a)] (Ref Long a))
gets the delta property of a Timezone.
dst?
instantiate
(Fn [(Ref Timezone a)] (Ref Bool a))
gets the dst? property of a Timezone.
init
instantiate
(Fn [String, Long, Bool] Timezone)
creates a Timezone.
name
instantiate
(Fn [(Ref Timezone a)] (Ref String a))
gets the name property of a Timezone.
prn
instantiate
(Fn [(Ref Timezone a)] String)
converts a Timezone to a string.
set-delta
instantiate
(Fn [Timezone, Long] Timezone)
sets the delta property of a Timezone.
set-delta!
instantiate
(Fn [(Ref Timezone a), Long] ())
sets the delta property of a Timezone in place.
set-dst?
instantiate
(Fn [Timezone, Bool] Timezone)
sets the dst? property of a Timezone.
set-dst?!
instantiate
(Fn [(Ref Timezone a), Bool] ())
sets the dst? property of a Timezone in place.
set-name
instantiate
(Fn [Timezone, String] Timezone)
sets the name property of a Timezone.
set-name!
instantiate
(Fn [(Ref Timezone a), String] ())
sets the name property of a Timezone in place.
str
instantiate
(Fn [(Ref Timezone a)] String)
converts a Timezone to a string.
update-delta
instantiate
(Fn [Timezone, (Ref (Fn [Long] Long a) b)] Timezone)
updates the delta property of a Timezone using a function f.
update-dst?
instantiate
(Fn [Timezone, (Ref (Fn [Bool] Bool a) b)] Timezone)
updates the dst? property of a Timezone using a function f.
update-name
instantiate
(Fn [Timezone, (Ref (Fn [String] String a) b)] Timezone)
updates the name property of a Timezone using a function f.
utc
def
Timezone
The UTC timezone constant.
zero
defn
(Fn [] Timezone)
(zero)