summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-18 00:09:59 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-18 00:09:59 -0400
commitdac10c8cf624613b9bdebe33e2d10c68ff310c50 (patch)
tree72278d83713b10851e57db81effaa8e275d51c0c /src/times.cc
parent4414fddb00849132495b0a30938af0f296dee32f (diff)
downloadfork-ledger-dac10c8cf624613b9bdebe33e2d10c68ff310c50.tar.gz
fork-ledger-dac10c8cf624613b9bdebe33e2d10c68ff310c50.tar.bz2
fork-ledger-dac10c8cf624613b9bdebe33e2d10c68ff310c50.zip
Parse 2004/01 as YYYY/mm
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/times.cc b/src/times.cc
index 4ea7389b..7101d3c6 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -42,12 +42,15 @@ namespace {
"%y/%m/%d",
"%Y/%m/%d",
"%m/%d",
+ "%Y/%m",
"%y.%m.%d",
"%Y.%m.%d",
"%m.%d",
+ "%Y.%m",
"%y-%m-%d",
"%Y-%m-%d",
"%m-%d",
+ "%Y-%m",
"%a",
"%A",
"%b",