Is golang 2038-safe?


(Andrew Pennebaker) #1

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/


(Johan Dahl) #2

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

Seems so


(Norbert Melzer) #3

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

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


(system) closed #4

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