hledger-0.2: A ledger-compatible text-based accounting tool.

Ledger.Dates

Description

Types for Dates and DateTimes, implemented in terms of UTCTime

Synopsis

Documentation

newtype Date Source

Constructors

Date UTCTime 

Instances

newtype DateTime Source

Constructors

DateTime UTCTime 

parsedatetime :: String -> DateTimeSource

Parse a date-time string to a time type, or raise an error.

parsedate :: String -> DateSource

Parse a date string to a time type, or raise an error.

parsetimewith :: ParseTime t => String -> String -> t -> tSource

Parse a time string to a time type using the provided pattern, or return the default.