raft-0.3.7.2: Miscellaneous Haskell utilities for data structures and data manipulation.

Safe HaskellSafe
LanguageHaskell2010

Data.Time.Util

Description

Some POSIX time functions.

Synopsis

Documentation

type SecondsPOSIX = Int Source #

POSIX seconds.

toSecondsPOSIX :: String -> SecondsPOSIX Source #

Convert an ISO 8601 string to POSIX seconds.

fromSecondsPOSIX :: TimeZone -> SecondsPOSIX -> String Source #

Convert POSIX seconds to an ISO 8601 string.

getSecondsPOSIX :: IO SecondsPOSIX Source #

Get the current time.