From 36f87f49d86e931bb99a226cd47721219ccd6301 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 6 Sep 2010 15:01:09 +0200 Subject: 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. --- src/commodity.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commodity.h') 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 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); -- cgit v1.2.3