Is golang 2038-safe?

Are golang’s standard library functions 2038-safe?

I can’t tell from the time package documentation whether timestamps are encoded with 64 bits or not.

https://golang.org/pkg/time/

1 Like

https://play.golang.org/p/2ke99RDH5Hf

Seems so

2 Likes

As you can see from the source, it’s based on 64 bit:

https://golang.org/src/time/time.go?s=6278:7279#L117

2 Likes

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