module Data.Time.Ext
( module Data.Time
, getLocalTime
, getLocalDay
) where
import Data.Time
getLocalTime :: IO LocalTime
getLocalTime :: IO LocalTime
getLocalTime = ZonedTime -> LocalTime
zonedTimeToLocalTime (ZonedTime -> LocalTime) -> IO ZonedTime -> IO LocalTime
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> IO ZonedTime
getZonedTime
getLocalDay :: IO Day
getLocalDay :: IO Day
getLocalDay = LocalTime -> Day
localDay (LocalTime -> Day) -> IO LocalTime -> IO Day
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> IO LocalTime
getLocalTime