From 5bf3f536b37e77b5dd663fffbd32e71b403d2c7a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 2 Aug 2008 00:37:36 -0400 Subject: Restored the interval_t time and added a new "period" debugging command. You can use 'ledger period "daily in june"' to find out how Ledger will parse that date string, plus up to the first 20 dates it encounters in the range. Note that the 'end' displayed is currently exclusive. --- walk.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'walk.cc') diff --git a/walk.cc b/walk.cc index 20fde04d..4d45dab3 100644 --- a/walk.cc +++ b/walk.cc @@ -438,15 +438,10 @@ void subtotal_xacts::report_subtotal(const char * spec_fmt) std::ostringstream out_date; if (! spec_fmt) { string fmt = "- "; - fmt += output_time_format; // jww (2008-04-24): output_date_format? - // jww (2008-04-24): There is no date output function? -#if 0 - finish.write(out_date, fmt); -#endif + fmt += output_date_format; + out_date << format_date(finish, string(fmt)); } else { -#if 0 - finish.write(out_date, spec_fmt); -#endif + out_date << format_date(finish, string(spec_fmt)); } entry_temps.push_back(entry_t()); -- cgit v1.2.3