time-exts-1.0.1: Efficient Timestamps

Safe HaskellNone

Data.Time.Exts.Unix

Synopsis

Documentation

createUnixDate :: Year -> Month -> Day -> UnixDateSource

Creates a Unix date.

createUnixDateTime :: Year -> Month -> Day -> Hour -> Minute -> Second -> UnixDateTimeSource

Creates a Unix date and time.

createUnixDateTimeMillis :: Year -> Month -> Day -> Hour -> Minute -> Second -> Millis -> UnixDateTimeMillisSource

Creates a Unix date and time with millisecond granularity.

createUnixDateTimeMicros :: Year -> Month -> Day -> Hour -> Minute -> Second -> Micros -> UnixDateTimeMicrosSource

Creates a Unix date and time with microsecond granularity.

createUnixDateTimeNanos :: Year -> Month -> Day -> Hour -> Minute -> Second -> Nanos -> UnixDateTimeNanosSource

Creates a Unix date and time with nanosecond granularity.

createUnixDateTimePicos :: Year -> Month -> Day -> Hour -> Minute -> Second -> Picos -> UnixDateTimePicosSource

Creates a Unix date and time with picosecond granularity.

getCurrentUnixDate :: IO UnixDateSource

Gets the current Unix date from the system clock.

getCurrentUnixDateTime :: IO UnixDateTimeSource

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

getCurrentUnixDateTimeMillis :: IO UnixDateTimeMillisSource

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

getCurrentUnixDateTimeMicros :: IO UnixDateTimeMicrosSource

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

getCurrentUnixDateTimeNanos :: IO UnixDateTimeNanosSource

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

getCurrentUnixDateTimePicos :: IO UnixDateTimePicosSource

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