mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
lib: getCurrentZonedTime
This commit is contained in:
parent
843c417079
commit
275f98b3be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user