lib: getCurrentZonedTime

This commit is contained in:
Simon Michael 2016-10-21 11:47:07 -07:00
parent 843c417079
commit 275f98b3be

View File

@ -107,6 +107,12 @@ getCurrentLocalTime = do
tz <- getCurrentTimeZone
return $ utcToLocalTime tz t
getCurrentZonedTime :: IO ZonedTime
getCurrentZonedTime = do
t <- getCurrentTime
tz <- getCurrentTimeZone
return $ utcToZonedTime tz t
-- misc
isLeft :: Either a b -> Bool