John Wiegley
3a9b7df4e5
date_interval_t now uses a duration_t object
...
This is instead of using boost::variant.
2009-10-30 18:03:26 -04:00
John Wiegley
cc532c31aa
Added TRUE_CURRENT_TIME() macro
...
Because CURRENT_TIME() can now be a past date if --now is used.
2009-10-28 01:17:54 -04:00
John Wiegley
ab433d28e0
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.
2009-10-27 21:32:55 -04:00
John Wiegley
fc84eeb358
Rewrote the way date and time I/O is managed
2009-10-25 05:01:47 -04:00
John Wiegley
f161aea8ce
Removed reliance on strptime/strftime
...
The code now uses Boost's input and output facets for times and dates.
This ensures completely consistency regarding timezones and times, and
fixes the regression test that was broken while I was away coding in
London (where it was GMT-0 and I didn't notice the difference between
local and GMT).
2009-10-11 05:19:01 -04:00
John Wiegley
475014a14b
Added some missing casts, upgraded to Boost 1.40
2009-10-09 19:50:23 -04:00
John Wiegley
dda7c3a58a
Rewrote the date interval parser/stepper
...
The new implementation uses boost::gregorian::date_duration objects,
rather than manually stepping.
2009-03-23 01:22:26 -04:00
John Wiegley
f1523b5464
The new code is working now.
2009-03-16 03:44:27 -04:00
John Wiegley
585b3a246d
Added feature to "align" the interval's start date
2009-03-15 23:51:46 -04:00
John Wiegley
a05353e269
First iteration of the new date_interval_t rewrite
2009-03-15 22:39:44 -04:00
John Wiegley
0de43f483b
Started breaking up interval_t into range_t
2009-03-15 22:39:44 -04:00
John Wiegley
c11d325712
Reduced the #include dependency tree to a minimum
2009-03-04 23:53:43 -04:00
John Wiegley
a93111470d
Greatly improved the way "weeks" are iterated
2009-02-21 02:10:02 -04:00
John Wiegley
388044dec9
Fixed the way interval_t objects are initialized
2009-02-14 04:27:15 -04:00
John Wiegley
e50abb5645
Removed interval_t::advanced, which was unused
2009-02-14 04:17:46 -04:00
John Wiegley
6ca01af594
Fixed the use of --effective and --date-format (-y).
2009-02-09 17:27:54 -04:00
John Wiegley
2d941730b1
Largely removed all of Ledger's use of global variables, for the REPL's sake.
2009-02-04 19:55:27 -04:00
John Wiegley
1ece3f8b1c
Added documentation stubs for all include files and classes.
2009-01-31 15:28:23 -04:00
John Wiegley
9aaab88c61
Update Doxygen documentation. Still much more work to be done.
2009-01-29 02:24:42 -04:00
John Wiegley
05b3562a13
Changed order of some functions, to guard against self-referencing.
2009-01-24 04:50:39 -04:00
John Wiegley
887828a40c
Increased copyright range to include 2009.
2009-01-20 01:53:31 -04:00
John Wiegley
53c6e826f1
Restored --format, --date-format (-y), and --input-date-format options.
2008-09-14 19:44:30 -04:00
John Wiegley
2bff7565c1
Changed interval_t::start to interval_t::set_start, to be more clear about how
...
it differs from interval_t::first.
2008-08-14 04:14:02 -04:00
John Wiegley
b588dc4caf
Changed the default output date format in register reports from 2008-08-13 to
...
08-Aug-13. This allows for the account name to be one character wider, while
the century was never significant in people's minds, whereas the change in
months between two transactions sometimes is.
2008-08-13 03:12:25 -04:00
John Wiegley
f6f4a46cf5
Moved around most of the files so that source code is in src/, documentation
...
is in doc/, etc.
2008-08-05 18:05:49 -04:00