duckling-0.2.0.0: A Haskell library for parsing text into structured data.
Safe HaskellNone
LanguageHaskell2010

Duckling.Time.Helpers

Synopsis

Documentation

weekday :: TimeData Source #

Note that this function is not the counterpart of weekend. weekend returns an interval while weekday returns a single day.

year :: Int -> TimeData Source #

Converts 2-digits to a year between 1950 and 2050

tt :: TimeData -> Maybe Token Source #

Convenience helper to return a time token from a rule