time-1.4: A time library

Safe HaskellSafe-Infered

Data.Time.Clock.Scale

Contents

Synopsis

Universal Time

Time as measured by the earth.

newtype UniversalTime Source

The Modified Julian Date is the day with the fraction of the day, measured from UT midnight. It's used to represent UT1, which is time as measured by the earth's rotation, adjusted for various wobbles.

Constructors

ModJulianDate 

Absolute intervals

data DiffTime Source

This is a length of time, as measured by a clock. Conversion functions will treat it as seconds. It has a precision of 10^-12 s.

secondsToDiffTime :: Integer -> DiffTimeSource

Create a DiffTime which represents an integral number of seconds.

picosecondsToDiffTime :: Integer -> DiffTimeSource

Create a DiffTime from a number of picoseconds.