Safe Haskell | Safe-Infered |
---|
Data.Time.Clock.Scale
Contents
- newtype UniversalTime = ModJulianDate {}
- data DiffTime
- secondsToDiffTime :: Integer -> DiffTime
- picosecondsToDiffTime :: Integer -> DiffTime
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 | |
Fields |
Absolute intervals
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.