araddon / dateparse

GoLang Parse many date strings without knowing format in advance.
MIT License
2.04k stars 166 forks source link

support bc time ? #125

Closed travelliu closed 2 years ago

travelliu commented 3 years ago
        t1 := time.Date(-410,1,1,0,0,0,0,time.Local)
        fmt.Println(t1.String())
        a := "-0410-01-01 00:00:00 +0805"
        ti, err := dateparse.ParseAny(a)
        if err != nil {
            fmt.Println(err)
            return
        }
        fmt.Println(ti.String())