hledger-iadd-1.3.13: A terminal UI as drop-in replacement for hledger add
Safe HaskellNone
LanguageHaskell2010

DateParser

Contents

Synopsis

Documentation

data DateFormat Source #

Instances

Instances details
Eq DateFormat Source # 
Instance details

Defined in DateParser

Show 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.