1module TutorialD.Interpreter.DataTypes.DateTime where
4import Text.Parsec.String
5import TutorialD.Interpreter.Base
9dateTimeAtomP :: Parser Atom
12 dateTime <- dateTimeStringP
15 return $ Atom dateTime'
17dateTimeStringP :: Parser UTCTime
19 dateTimeString <- quotedString
20 case parseTimeM False defaultTimeLocale "%Y-%m-%d %H:%M:%S" dateTimeString of
21 Just utctime -> return $ (utctime :: UTCTime)
22 Nothing -> fail $ "Failed to parse datetime from " ++ dateTimeString
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list