Safe Haskell | None |
---|
- class Unix x
- newtype UnixDate = UnixDate Int32
- newtype UnixDateTime = UnixDateTime Int64
- data UnixDateTimeMillis = UnixDateTimeMillis {
- _uni_mil_base :: !Int64
- _uni_mil_mill :: !Int16
- data UnixDateTimeMicros = UnixDateTimeMicros {
- _uni_mic_base :: !Int64
- _uni_mic_micr :: !Int32
- data UnixDateTimeNanos = UnixDateTimeNanos {
- _uni_nan_base :: !Int64
- _uni_nan_nano :: !Int32
- data UnixDateTimePicos = UnixDateTimePicos {
- _uni_pic_base :: !Int64
- _uni_pic_pico :: !Int64
- createUnixDate :: Year -> Month -> Day -> UnixDate
- createUnixDateTime :: Year -> Month -> Day -> Hour -> Minute -> Second -> UnixDateTime
- createUnixDateTimeMillis :: Year -> Month -> Day -> Hour -> Minute -> Second -> Millis -> UnixDateTimeMillis
- createUnixDateTimeMicros :: Year -> Month -> Day -> Hour -> Minute -> Second -> Micros -> UnixDateTimeMicros
- createUnixDateTimeNanos :: Year -> Month -> Day -> Hour -> Minute -> Second -> Nanos -> UnixDateTimeNanos
- createUnixDateTimePicos :: Year -> Month -> Day -> Hour -> Minute -> Second -> Picos -> UnixDateTimePicos
- getCurrentUnixDate :: IO UnixDate
- getCurrentUnixDateTime :: IO UnixDateTime
- getCurrentUnixDateTimeMillis :: IO UnixDateTimeMillis
- getCurrentUnixDateTimeMicros :: IO UnixDateTimeMicros
- getCurrentUnixDateTimeNanos :: IO UnixDateTimeNanos
- getCurrentUnixDateTimePicos :: IO UnixDateTimePicos
Documentation
newtype UnixDateTime Source
data UnixDateTimeMillis Source
UnixDateTimeMillis | |
|
data UnixDateTimeMicros Source
UnixDateTimeMicros | |
|
data UnixDateTimeNanos Source
UnixDateTimeNanos | |
|
data UnixDateTimePicos Source
UnixDateTimePicos | |
|
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.