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.

Source for wiki TimeCowan version 2

author

cowan

comment


    

ipnr

198.185.18.207

name

TimeCowan

readonly

0

text

== Time ==

`(current-time)`

Returns a rational number representing the current number of milliseconds (excluding milliseconds during a leap second) since the Posix Epoch, which is 00:00:00 on 1 January 1970, Universal Coordinated Time.  Implementations SHOULD return a value that is as precise and accurate as possible.  Implementations MAY return exact or inexact values, and SHOULD return inexact values unless:

 * The value is an integer.
 * The range of most-efficiently-implemented exact integers in the implementation exceeds the integer range of inexact rationals.

In practice this means that implementations with fixnums greater than 2^53 should return fixnums unless they have time-of-day clocks that provide more than 1 ms precision, and all other implementations should return IEEE 64-bit floats.

== Advanced Time (WG2) ==

See TimeAdvancedCowan.

== Time Durations and Periods (WG2) ==

See TimePeriodsCowan.

time

2010-11-09 04:46:21

version

2