Cannot parse the time format using time.parse()

Hi I want to parse this time format 20060102150405 +0000 using time.parse() but I am getting *time.ParseError with message : extra text: " +0000". Can someone help me out on this ?

From time package - time - pkg.go.dev it looks as if you need to use the magic number -0700 for the offset.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.