2
0
mirror of https://github.com/araddon/dateparse.git synced 2026-08-01 13:44:03 +08:00

new date format

This commit is contained in:
Aaron Raddon
2015-06-25 14:09:39 -07:00
parent 33ad15a3c7
commit 0dca814ad3
2 changed files with 13 additions and 0 deletions

View File

@@ -188,6 +188,11 @@ func TestParse(t *testing.T) {
//u.Debug(ts.In(time.UTC).Unix(), ts.In(time.UTC))
assert.T(t, "2009-08-13 05:15:09 +0000 UTC" == fmt.Sprintf("%v", ts.In(time.UTC)))
ts, err = ParseAny("2009-08-12T22:15:09")
assert.Tf(t, err == nil, "%v", err)
//u.Debug(ts.In(time.UTC))
assert.T(t, "2009-08-12 22:15:09 +0000 UTC" == fmt.Sprintf("%v", ts.In(time.UTC)))
ts, err = ParseAny("2014-04-26 17:24:37.3186369")
assert.Tf(t, err == nil, "%v", err)
//u.Debug(ts.In(time.UTC).Unix(), ts.In(time.UTC))