diff --git a/README.md b/README.md index 8d9a7ce..b1d4ed9 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ var examples = []string{ "3.31.2014", "03.31.2014", "08.21.71", + "2014.03", // yyyymmdd and similar "20140601", // unix seconds, ms @@ -265,6 +266,7 @@ func main() { | 3.31.2014 | 2014-03-31 00:00:00 +0000 UTC | | 03.31.2014 | 2014-03-31 00:00:00 +0000 UTC | | 08.21.71 | 1971-08-21 00:00:00 +0000 UTC | +| 2014.03 | 2014-03-01 00:00:00 +0000 UTC | | 20140601 | 2014-06-01 00:00:00 +0000 UTC | | 1332151919 | 2012-03-19 10:11:59 +0000 UTC | | 1384216367189 | 2013-11-12 00:32:47.189 +0000 UTC | diff --git a/example/main.go b/example/main.go index 2c7d1bb..c4e374f 100644 --- a/example/main.go +++ b/example/main.go @@ -89,6 +89,7 @@ var examples = []string{ "3.31.2014", "03.31.2014", "08.21.71", + "2014.03", // yyyymmdd and similar "20140601", // unix seconds, ms @@ -204,6 +205,7 @@ func main() { | 3.31.2014 | 2014-03-31 00:00:00 +0000 UTC | | 03.31.2014 | 2014-03-31 00:00:00 +0000 UTC | | 08.21.71 | 1971-08-21 00:00:00 +0000 UTC | +| 2014.03 | 2014-03-01 00:00:00 +0000 UTC | | 20140601 | 2014-06-01 00:00:00 +0000 UTC | | 1332151919 | 2012-03-19 10:11:59 +0000 UTC | | 1384216367189 | 2013-11-12 00:32:47.189 +0000 UTC |