mirror of
https://github.com/araddon/dateparse.git
synced 2024-11-10 11:51:54 +08:00
Update parseany.go
This commit is contained in:
parent
26dc426a1c
commit
3d397c53f2
@ -127,7 +127,12 @@ iterRunes:
|
|||||||
// 2006-01-02T15:04:05.999999999Z07:00
|
// 2006-01-02T15:04:05.999999999Z07:00
|
||||||
// 2006-01-02T15:04:05.999999999Z
|
// 2006-01-02T15:04:05.999999999Z
|
||||||
// 2006-01-02T15:04:05.99999999Z
|
// 2006-01-02T15:04:05.99999999Z
|
||||||
// 2013-06-16T06:57:48.9999999Z
|
// 2006-01-02T15:04:05.9999999Z
|
||||||
|
// 2006-01-02T15:04:05.999999Z
|
||||||
|
// 2006-01-02T15:04:05.99999Z
|
||||||
|
// 2006-01-02T15:04:05.9999Z
|
||||||
|
// 2006-01-02T15:04:05.999Z
|
||||||
|
// 2006-01-02T15:04:05.99Z
|
||||||
if len(datestr) == len("2006-01-02T15:04:05Z07:00") {
|
if len(datestr) == len("2006-01-02T15:04:05Z07:00") {
|
||||||
if t, err := time.Parse("2006-01-02T15:04:05Z07:00", datestr); err == nil {
|
if t, err := time.Parse("2006-01-02T15:04:05Z07:00", datestr); err == nil {
|
||||||
return t, nil
|
return t, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user