current-second
-- r7rs
Definition procedure
;
current-second
(from vonuvoli
);Procedure variants:
(() -> (timestamp-seconds))
timestamp-seconds
;scheme:time
-- (scheme time)
;scheme
-- (scheme)
;(current-second)
Returns an inexact number representing the current time on the International Atomic Time (TAI) scale. The value
0.0
represents midnight on January 1, 1970 TAI (equivalent to ten seconds before midnight Universal Time) and the value1.0
represents one TAI second later. Neither high accuracy nor high precision are required; in particular, returning Coordinated Universal Time plus a suitable constant might be the best an implementation can do.
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.