2
0
mirror of https://github.com/araddon/dateparse.git synced 2026-02-04 09:59:10 +00:00

add another weird date format: 08/21/71

This commit is contained in:
Aaron Raddon
2014-12-15 11:20:40 -08:00
parent 148ceeb09c
commit abacbd8024
2 changed files with 14 additions and 10 deletions

View File

@@ -103,6 +103,12 @@ func TestParse(t *testing.T) {
//u.Debug(ts.In(time.UTC).Unix(), ts.In(time.UTC))
assert.T(t, "2014-03-31 00:00:00 +0000 UTC" == fmt.Sprintf("%v", ts.In(time.UTC)))
// what type of date is this? 08/21/71
ts, err = ParseAny("08/21/71")
assert.Tf(t, err == nil, "%v", err)
//u.Debug(ts.In(time.UTC).Unix(), ts.In(time.UTC))
assert.T(t, "1971-08-21 00:00:00 +0000 UTC" == fmt.Sprintf("%v", ts.In(time.UTC)))
ts, err = ParseAny("4/8/2014 22:05")
assert.Tf(t, err == nil, "%v", err)
//u.Debug(ts.In(time.UTC).Unix(), ts.In(time.UTC))