6.2.901.900
10 Generic Moment Operations
value
gen:moment-provider : any/c
An interface, implemented by moment, that supplies generic
operations on moments.
procedure
(moment-provider? x) → boolean?
x : any/c
procedure
t : moment-provider?
Returns the moment corresponding to t.
procedure
(->utc-offset t) → (integer-in -64800 64800)
t : moment-provider?
Returns the UTC offset of t in seconds.
Examples: | ||||||||
|
procedure
(->timezone t) → tz/c
t : moment-provider?
Returns the time zone component of t, whether it is an IANA ID
or a UTC offset.
Examples: | ||||||
|
procedure
t : moment-provider?
Returns the time zone component of t only if it is an IANA ID. If it is
a UTC offset, #f is returned.
Examples: | ||||
|
procedure
(adjust-timezone t tz) → moment-provider?
t : moment-provider? tz : tz/c
Returns a moment provider m, such that:
(and (moment=? t (->moment m)) (equal? tz (->timezone m))).
Examples: | ||||
|