diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2010-09-06 15:01:09 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2012-11-10 12:02:00 +0100 |
commit | 36f87f49d86e931bb99a226cd47721219ccd6301 (patch) | |
tree | 771d4fe5bf7d0954f80d7a9edff7900b4b351152 /src/session.h | |
parent | e77e9d692aea5a061f6fde144a56de085b1a74c4 (diff) | |
download | fork-ledger-36f87f49d86e931bb99a226cd47721219ccd6301.tar.gz fork-ledger-36f87f49d86e931bb99a226cd47721219ccd6301.tar.bz2 fork-ledger-36f87f49d86e931bb99a226cd47721219ccd6301.zip |
Add --time-colon option
The --time-colon option will display the value for a seconds
based commodity as real hours and minutes.
For example 8100 seconds by default will be displayed as 2.25
whereas with the --time-colon option they will be displayed
as 2:15.
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h index a0aba91b..74aeab5f 100644 --- a/src/session.h +++ b/src/session.h @@ -100,6 +100,7 @@ public: HANDLER(day_break).report(out); HANDLER(download).report(out); HANDLER(decimal_comma).report(out); + HANDLER(time_colon).report(out); HANDLER(file_).report(out); HANDLER(input_date_format_).report(out); HANDLER(explicit).report(out); @@ -130,6 +131,10 @@ public: commodity_t::decimal_comma_by_default = true; }); + OPTION_(session_t, time_colon, DO() { + commodity_t::time_colon_by_default = true; + }); + OPTION__ (session_t, price_exp_, // -Z CTOR(session_t, price_exp_) { value = "24"; }); |