time-exts-1.0.1: Efficient Timestamps

Safe HaskellNone

Data.Time.Exts.Local

Synopsis

Documentation

createLocalDate :: Year -> Month -> Day -> TimeZone -> LocalDateSource

Creates a local date.

createLocalDateTime :: Year -> Month -> Day -> Hour -> Minute -> Second -> TimeZone -> LocalDateTimeSource

Creates a local date and time.

createLocalDateTimeMillis :: Year -> Month -> Day -> Hour -> Minute -> Second -> Millis -> TimeZone -> LocalDateTimeMillisSource

Creates a local date and time with millisecond granularity.

createLocalDateTimeMicros :: Year -> Month -> Day -> Hour -> Minute -> Second -> Micros -> TimeZone -> LocalDateTimeMicrosSource

Creates a local date and time with microsecond granularity.

createLocalDateTimeNanos :: Year -> Month -> Day -> Hour -> Minute -> Second -> Nanos -> TimeZone -> LocalDateTimeNanosSource

Creates a local date and time with nanosecond granularity.

createLocalDateTimePicos :: Year -> Month -> Day -> Hour -> Minute -> Second -> Picos -> TimeZone -> LocalDateTimePicosSource

Creates a local date and time with picosecond granularity.

getCurrentLocalDate :: City -> IO LocalDateSource

Gets the current local date from the system clock.

getCurrentLocalDateTime :: City -> IO LocalDateTimeSource

Gets the current local date and time from the system clock.

getCurrentLocalDateTimeMillis :: City -> IO LocalDateTimeMillisSource

Gets the current local date and time with millisecond granularity from the system clock.

getCurrentLocalDateTimeMicros :: City -> IO LocalDateTimeMicrosSource

Gets the current local date and time with microsecond granularity from the system clock.

getCurrentLocalDateTimeNanos :: City -> IO LocalDateTimeNanosSource

Gets the current local date and time with nanosecond granularity from the system clock.

getCurrentLocalDateTimePicos :: City -> IO LocalDateTimePicosSource

Gets the current local date and time with picosecond granularity from the system clock.

getCurrentLocalDate' :: TransitionTimes -> IO LocalDateSource

Gets the current local date from the system clock with preloaded transition times.

getCurrentLocalDateTime' :: TransitionTimes -> IO LocalDateTimeSource

Gets the current local date and time from the system clock with preloaded transition times.

getCurrentLocalDateTimeMillis' :: TransitionTimes -> IO LocalDateTimeMillisSource

Gets the current local date and time with millisecond granularity from the system clock with preloaded transition times.

getCurrentLocalDateTimeMicros' :: TransitionTimes -> IO LocalDateTimeMicrosSource

Gets the current local date and time with microsecond granularity from the system clock with preloaded transition times.

getCurrentLocalDateTimeNanos' :: TransitionTimes -> IO LocalDateTimeNanosSource

Gets the current local date and time with nanosecond granularity from the system clock with preloaded transition times.

getCurrentLocalDateTimePicos' :: TransitionTimes -> IO LocalDateTimePicosSource

Gets the current local date and time with picosecond granularity from the system clock with preloaded transition times.

getTransitionTimes :: City -> IO TransitionTimesSource

Returns a set of transition times for the given city.

baseUnixToUTC :: Int64 -> Int64Source

Converts a Unix base into a UTC base.

baseUTCToUnix :: Int64 -> (Int64, Second)Source

Converts a UTC base into a Unix base and leap second.