uniform-time-0.1.5.1: Time in the uniform framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Uniform.Time

Description

a minimal set of time operations at the moment only a wrapper to time examples in TestingTime.hs

Synopsis

Documentation

year2000 :: UTCTime Source #

may serve as zero in some applications

readDate2 :: Text -> UTCTime Source #

read data in the Jan 7, 2019 format (no . after month)

readDateMaybe :: Text -> Maybe UTCTime Source #

read data in various formats (but not 9.10.20 !)

data UTCTime #

This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.

Constructors

UTCTime 

Fields

Instances

Instances details
Data UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UTCTime -> c UTCTime #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UTCTime #

toConstr :: UTCTime -> Constr #

dataTypeOf :: UTCTime -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UTCTime) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UTCTime) #

gmapT :: (forall b. Data b => b -> b) -> UTCTime -> UTCTime #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UTCTime -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UTCTime -> r #

gmapQ :: (forall d. Data d => d -> u) -> UTCTime -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UTCTime -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UTCTime -> m UTCTime #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UTCTime -> m UTCTime #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UTCTime -> m UTCTime #

IsString UTCTime Source # 
Instance details

Defined in Uniform.Time

Methods

fromString :: String -> UTCTime #

NFData UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

rnf :: UTCTime -> () #

Eq UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

Methods

(==) :: UTCTime -> UTCTime -> Bool #

(/=) :: UTCTime -> UTCTime -> Bool #

Ord UTCTime 
Instance details

Defined in Data.Time.Clock.Internal.UTCTime

CharChains2 UTCTime Text Source # 
Instance details

Defined in Uniform.Time

Methods

show' :: UTCTime -> Text #

Orphan instances

IsString UTCTime Source # 
Instance details

Methods

fromString :: String -> UTCTime #

CharChains2 NominalDiffTime Text Source # 
Instance details

CharChains2 UTCTime Text Source # 
Instance details

Methods

show' :: UTCTime -> Text #

CharChains2 (Integer, Int, Int) Text Source # 
Instance details

Methods

show' :: (Integer, Int, Int) -> Text #