diff options
Diffstat (limited to 'src/times.cc')
-rw-r--r-- | src/times.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/times.cc b/src/times.cc index f93759d1..fe4d2b53 100644 --- a/src/times.cc +++ b/src/times.cc @@ -33,6 +33,10 @@ namespace ledger { +optional<std::string> input_date_format; +std::string output_datetime_format = "%Y-%m-%d %H:%M:%S"; +std::string output_date_format = "%Y-%m-%d"; + namespace { const char * formats[] = { "%y/%m/%d", @@ -53,8 +57,6 @@ namespace { }; } -optional<string> input_date_format; - namespace { bool parse_date_mask(const char * date_str, std::tm& result) { |