hledger-iadd-1.3.20: A terminal UI as drop-in replacement for hledger add
Safe HaskellSafe-Inferred
LanguageHaskell2010

DateParser

Contents

Synopsis

Documentation

data DateFormat Source #

Instances

Instances details
Show DateFormat Source # 
Instance details

Defined in DateParser

Eq DateFormat Source # 
Instance details

Defined in DateParser

german :: DateFormat Source #

Corresponds to %d[.[%m[.[%y]]]]

parseDateWithToday :: DateFormat -> Text -> IO (Either Text Day) Source #

Parse text with given format and fill in missing fields with todays date.

Utilities

weekDay :: Int -> Day -> Day Source #

Computes a relative date by the given weekday

Returns the first weekday with index wday, that's before the current date.