wasi-clocks icon indicating copy to clipboard operation
wasi-clocks copied to clipboard

Clarify whether `now` excludes leap seconds

Open bakkot opened this issue 8 months ago • 0 comments

The documentation of now says

    /// The returned timestamps represent the number of seconds since
    /// 1970-01-01T00:00:00Z, also known as [POSIX's Seconds Since the Epoch],
    /// also known as [Unix Time].

But those things are in contradiction: Unix time is currently 37 seconds behind the number of seconds since 1970-01-01T00:00:00Z.

This should be clarified, probably by adding "excluding leap seconds" to the description.

bakkot avatar Jun 21 '24 00:06 bakkot