summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-09 17:27:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-09 17:27:54 -0400
commit6ca01af594148e12cd8e1da87302644a0bbae3a0 (patch)
treebb83af15a352e3125053a3d5c0761f8e395ed2c3 /src/times.cc
parentcad86ed87f3548aaf9d35890f2b686c2bf064368 (diff)
downloadfork-ledger-6ca01af594148e12cd8e1da87302644a0bbae3a0.tar.gz
fork-ledger-6ca01af594148e12cd8e1da87302644a0bbae3a0.tar.bz2
fork-ledger-6ca01af594148e12cd8e1da87302644a0bbae3a0.zip
Fixed the use of --effective and --date-format (-y).
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc6
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)
{