summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2010-09-06 15:01:09 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2012-11-10 12:02:00 +0100
commit36f87f49d86e931bb99a226cd47721219ccd6301 (patch)
tree771d4fe5bf7d0954f80d7a9edff7900b4b351152 /src/commodity.cc
parente77e9d692aea5a061f6fde144a56de085b1a74c4 (diff)
downloadfork-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/commodity.cc')
-rw-r--r--src/commodity.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 05d465ca..ffeac10d 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -40,6 +40,7 @@
namespace ledger {
bool commodity_t::decimal_comma_by_default = false;
+bool commodity_t::time_colon_by_default = false;
void commodity_t::add_price(const datetime_t& date, const amount_t& price,
const bool reflexive)