summaryrefslogtreecommitdiff
path: root/.gitmodules
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-17 22:23:46 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-17 22:23:46 -0500
commit3e91c3bf2c3662c40f0fe7c9cf197f6b0c725269 (patch)
tree15015ec3af9a8533592515f01fcb33f740146a4a /.gitmodules
parentd6cb382b20a1c65fde043af0ef41f21570027b27 (diff)
downloadfork-ledger-3e91c3bf2c3662c40f0fe7c9cf197f6b0c725269.tar.gz
fork-ledger-3e91c3bf2c3662c40f0fe7c9cf197f6b0c725269.tar.bz2
fork-ledger-3e91c3bf2c3662c40f0fe7c9cf197f6b0c725269.zip
Added several new types for working with dates and ranges
date_specifier_t :: This is like a plain date_t, except it knows what wasn't specified. For example, if 2008/06 is parsed, it becomes date_specifier_t which knows that no day was given. If you ask for the begin() date of the specifier, it will be 2008/06/01; the end() date (which is exclusive) will be 2008/07/01. date_range_t :: A date range is a range of two specifiers, either of which (but not both) may be omitted. This makes it possible to represent expressions like "from june to july", where no day or year is given. The exact dates will be inferred by using the current year, and fixing the range from YEAR/06/01 to YEAR/07/01. That is, the range goes from the begin() of one date specifier to the begin() of the other. date_specifier_or_range_t :: A variadic type that can be either a date_specifier_t or a date_range_t. It's just a wrapper to represent the fact that ranges can be implicit via specifiers (such as, "in june"), or explicit via ranges ("since 2008").
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions