summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-27 21:32:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-27 21:32:55 -0400
commitab433d28e08bbe23bbc75d333ed63343356e043a (patch)
tree273377e30b59a28de199e45fe66519ff8a387bf3 /src/times.cc
parentaae134f69275e4f71ec70d893cdfd0b5839fef8e (diff)
downloadfork-ledger-ab433d28e08bbe23bbc75d333ed63343356e043a.tar.gz
fork-ledger-ab433d28e08bbe23bbc75d333ed63343356e043a.tar.bz2
fork-ledger-ab433d28e08bbe23bbc75d333ed63343356e043a.zip
Support a --now option, for testing purposes
This sets Ledger's notion of the "current time" to the given date. This makes it possible to have stable output from budgeting and forecasting reports, for the sake of baseline tests.
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/times.cc b/src/times.cc
index facdc4f6..7b6eb6e8 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -35,6 +35,8 @@
namespace ledger {
+optional<datetime_t> epoch;
+
date_time::weekdays start_of_week = gregorian::Sunday;
//#define USE_BOOST_FACETS 1