Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Quick Start
Use these types for time regardless of location (not caring about leap-seconds):
UTCTime
for actual timesNominalDiffTime
for differences between times, i.e. durations
Use these types for the ways people refer to time:
Day
for something like June 27th 2017TimeOfDay
for something like 5pmLocalTime
for aDay
with aTimeOfDay
TimeZone
for a time zone offset (not actually the time zone itself) like -0700ZonedTime
for aLocalTime
with aTimeZone
Use this for low-latency timing:
These are less commonly needed:
AbsoluteTime
andDiffTime
if you do care about leap-seconds.LeapSecondMap
for tracking the leap-secondsUniversalTime
for time based on Earth rotation
Documentation
module Data.Time.Calendar
module Data.Time.Clock
module Data.Time.LocalTime
module Data.Time.Format