This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home. For a version of this page that may be more recent, see TimeCowan in WG2's repo for R7RS-large.

Time­Cowan

cowan
2010-11-29 01:34:40
12history
source

Time

(current-posix-second)

Returns an rational number representing the current second of the Posix epoch, which began on 00:00:00 on 1 January 1970, Coordinated Universal Time but excludes all leap seconds. Implementations SHOULD return a value that:

Implementations SHOULD return an inexact value, allowing programs to deal in flexible precisions.

If the implementation cannot provide the time when current-posix-seconds is called (either temporarily or permanently), it MUST return #f.

Assuming the number of leap seconds between 1972 and 2011 was typical (not necessarily a safe assumption), there is about a 1 in 10-8 probability that a computation of elapsed time made by calling this procedure twice will be off by 1.

Date and Time Arithmetic (WG2)

See TimeAdvancedCowan.

Time Durations and Periods (WG2)

See TimePeriodsCowan.

Time formatting (WG2)

See TimeFormattingCowan.