2
0
mirror of https://github.com/araddon/dateparse.git synced 2026-08-16 14:11:11 +08:00

parse yyyyMMddhhmmss digit format closes #65

This commit is contained in:
Aaron Raddon
2018-07-21 14:28:33 -07:00
parent 089f77b1d9
commit a95177ee19
4 changed files with 207 additions and 192 deletions

View File

@@ -322,6 +322,8 @@ var testInputs = []dateTest{
// yyyymmdd and similar
{in: "2014", out: "2014-01-01 00:00:00 +0000 UTC"},
{in: "20140601", out: "2014-06-01 00:00:00 +0000 UTC"},
{in: "20140722105203", out: "2014-07-22 10:52:03 +0000 UTC"},
// all digits: unix secs, ms etc
{in: "1332151919", out: "2012-03-19 10:11:59 +0000 UTC"},
{in: "1332151919", out: "2012-03-19 10:11:59 +0000 UTC", loc: "America/Denver"},