Copyright | (c) 2016 Herbert Valerio Riedel |
---|---|
License | BSD3 |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Timestamp type used in package indexes
Synopsis
- data Timestamp = NoTimestamp
- epochTimeToTimestamp :: EpochTime -> Timestamp
- timestampToUTCTime :: Timestamp -> Maybe UTCTime
- utcTimeToTimestamp :: UTCTime -> Timestamp
- maximumTimestamp :: [Timestamp] -> Timestamp
Documentation
UNIX timestamp (expressed in seconds since unix epoch, i.e. 1970).
Instances
maximumTimestamp :: [Timestamp] -> Timestamp Source #
Compute the maximum Timestamp
value
Returns NoTimestamp
for the empty list. Also note that
NoTimestamp
compares as smaller to all non-NoTimestamp
values.