time-1.4: A time library

Safe HaskellSafe-Infered

Data.Time.LocalTime.LocalTime

Contents

Synopsis

Local Time

data LocalTime Source

A simple day and time aggregate, where the day is of the specified parameter, and the time is a TimeOfDay. Conversion of this (as local civil time) to UTC depends on the time zone. Conversion of this (as local mean time) to UT1 depends on the longitude.

Constructors

LocalTime 

utcToLocalTime :: TimeZone -> UTCTime -> LocalTimeSource

show a UTC time in a given time zone as a LocalTime

localTimeToUTC :: TimeZone -> LocalTime -> UTCTimeSource

find out what UTC time a given LocalTime in a given time zone is

ut1ToLocalTime :: Rational -> UniversalTime -> LocalTimeSource

1st arg is observation meridian in degrees, positive is East

localTimeToUT1 :: Rational -> LocalTime -> UniversalTimeSource

1st arg is observation meridian in degrees, positive is East