6.2.901.900
14 Current Date and Time
parameter
(current-clock) → (-> rational?)
(current-clock clock) → void? clock : (-> rational?)
= current-posix-seconds
A parameter that defines the current clock used by all functions
that require the current time. A clock is simply a nullary function that
returns the number of seconds since the UNIX epoch.
The default value is current-posix-seconds.
procedure
Returns the number of seconds since the UNIX epoch as a rational number.
This function is implemented as:
(define (current-posix-seconds) (/ (inexact->exact (current-inexact-milliseconds)) 1000))
Returns the current date in the specified time zone.
Example: | |||||
|
procedure
(current-time [#:tz tz]) → time?
tz : tz/c = (current-timezone)
procedure
(current-time/utc) → time?
Returns the current time in the specified time zone.
Example: | |||||
|
Returns the current datetime in the specified time zone.
Example: | |||||
|
procedure
(now/moment [#:tz tz]) → moment?
tz : tz/c = (current-timezone)
procedure
Returns the current moment in the specified time zone.
Example: | |||||||
|