gobyexample/examples/time-formatting-parsing/time-formatting-parsing.sh
❖ Vitaliy Ryepnoy ❖ 6687c1252a
Fix output with real results
Fix output according to the example executed at https://play.golang.org/p/_7wwI4PXw9o
2021-08-19 22:39:07 +10:00

10 lines
287 B
Bash

$ go run time-formatting-parsing.go
2009-11-10T23:00:00Z
2012-11-01 22:08:41 +0000 UTC
11:00PM
Tue Nov 10 23:00:00 2009
2009-11-10T23:00:00+00:00
0000-01-01 20:41:00 +0000 UTC
2009-11-10T23:00:00-00:00
parsing time "8:41PM" as "Mon Jan _2 15:04:05 2006": cannot parse "8:41PM" as "Mon"