getCurrentLocalTime
This commit is contained in:
parent
aa607b1297
commit
415c48d855
@ -233,6 +233,13 @@ spacenonewline = satisfy (\c -> c `elem` " \v\f\t")
|
|||||||
restofline :: GenParser Char st String
|
restofline :: GenParser Char st String
|
||||||
restofline = anyChar `manyTill` newline
|
restofline = anyChar `manyTill` newline
|
||||||
|
|
||||||
|
-- time
|
||||||
|
|
||||||
|
getCurrentLocalTime :: IO LocalTime
|
||||||
|
getCurrentLocalTime = do
|
||||||
|
t <- getCurrentTime
|
||||||
|
tz <- getCurrentTimeZone
|
||||||
|
return $ utcToLocalTime tz t
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user