summaryrefslogtreecommitdiff
path: root/src/commodity.h
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.h
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.h')
-rw-r--r--src/commodity.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commodity.h b/src/commodity.h
index ab496850..1d69b689 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -107,6 +107,7 @@ protected:
#define COMMODITY_SAW_ANNOTATED 0x200
#define COMMODITY_SAW_ANN_PRICE_FLOAT 0x400
#define COMMODITY_SAW_ANN_PRICE_FIXATED 0x800
+#define COMMODITY_STYLE_TIME_COLON 0x1000
string symbol;
optional<std::size_t> graph_index;
@@ -176,6 +177,7 @@ protected:
public:
static bool decimal_comma_by_default;
+ static bool time_colon_by_default;
virtual ~commodity_t() {
TRACE_DTOR(commodity_t);