utc-0.1.0.1: A pragmatic time and date library.

Safe HaskellSafe
LanguageHaskell98

Data.UTC.Class.IsUnixTime

Synopsis

Documentation

class IsUnixTime t where Source

This class is for types that have a well-defined mapping to and from the Unix Time system (based on UTC).

Beware: It is a common misconception that the Unix time in general counts SI seconds since 1970-01-01T00:00:00Z. There is a common definition that may be called Unix time based on UTC: In general, the second boundaries match with UTC, but in the event of a positive (or negative) leap second the Unix second has a duration of 2 (or 0) SI seconds. This library is in accordance with this definition. This definition can also be understood as "ignoring leap seconds" (a Unix day therefore always has 86400 Unix seconds).

The concrete behaviour of your system clock is implementation dependant.