cvt
GitHubToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Time

Time

TimeE

cvt.Time("2009-11-10 23:00:00 +0000 UTC")
cvt.Time("2018-10-21T23:21:29+0200")
cvt.Time("10 Nov 09 23:00 UTC")
cvt.Time("2009-11-10T23:00:00Z")
cvt.Time("11:00PM")
cvt.Time("2006-01-02")
cvt.Time("2016-03-06 15:28:01")
cvt.Time(1482597504)
cvt.Time(time.Date(2009, 2, 13, 23, 31, 30, 0, time.Local))

TimeInLocation

cvt.TimeInLocation(“2009-02-13 23:31:30”, time.FixedZone(“UTC”, 8*3600))

TimeInLocationE

cvt.TimeInLocationE(“2009-02-13 23:31:30”, time.FixedZone(“UTC”, 8*3600))

More case see unit: time_test.go