WebAssembly / wasi-clocks

Clocks API for WASI
30 stars 12 forks source link

Clarify whether `now` excludes leap seconds #70

Open bakkot opened 2 weeks ago

bakkot commented 2 weeks ago

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.