John Wiegley
4a249d6172
Fixed issues with period strings like "2009/10"
2009-11-02 01:59:24 -05:00
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
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
a8182c32bd
Fixed the Boost facet-based time parsing code
2009-10-25 18:55:13 -04:00
John Wiegley
f25a32c92c
Whitespace and comment changes
2009-10-25 05:40:10 -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
ed9735f66d
Correctly parse the range of period "june 2008"
2009-06-18 00:50:27 +01:00
John Wiegley
0918f9d4f5
Don't instantiate duration_t using default ctor
2009-03-23 19:21:27 -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
110f0b8023
Enabled use of pre-compiled headers by default
2009-03-10 17:02:03 -04:00
John Wiegley
db70bb1d04
Added support for "today" as a time period
2009-03-08 04:20:33 -04:00
John Wiegley
c11d325712
Reduced the #include dependency tree to a minimum
2009-03-04 23:53:43 -04:00
John Wiegley
a2ed6bc95d
Patched some date-sensitive tests
2009-03-02 04:49:03 -04:00
John Wiegley
38122c2224
Corrected warnings g++-4.3.3 was complaining about
2009-02-28 04:54:54 -04:00
John Wiegley
238bd7f8a5
Marked all strings needing internationalization
...
These strings are now collected automagically in the file po/ledger.pot.
If you'd like to produce a translation, just run this command after
building Ledger:
msginit -l LOCALE -o LANG.po -i po/ledger.pot
Where LOCALE is a string like de or en_GB, and LANG is a short
descriptive word for your language.
Then send me this .po file so I can commit it to the Ledger sources
(alternatively, you could maintain the file in a fork on GitHub), and
setup the build script to format and install your new message catalog
during a "make install".
2009-02-25 03:51:42 -04:00
John Wiegley
a93111470d
Greatly improved the way "weeks" are iterated
2009-02-21 02:10:02 -04:00
John Wiegley
3826cb1bee
Re-enabled parsing of timelog data
2009-02-19 15:50:24 -04:00
John Wiegley
dac10c8cf6
Parse 2004/01 as YYYY/mm
2009-02-18 00:09:59 -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
1a030da55d
Rewrote the "entry" command. It's ALIVE!
2009-02-11 19:14:23 -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
887828a40c
Increased copyright range to include 2009.
2009-01-20 01:53:31 -04:00
John Wiegley
a50bab1865
Changed output_date_format to match 08-Aug-14 format.
2008-08-14 02:40:23 -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