Question: FormatTime timestamp

timestamp is the number of seconds from the epoch, which I thought was Jan 1, 1970.  Maple uses Dec 31, 1969.  It appears there is a maximum number of seconds you can use with timestamp.

FormatTime("%Y-%m-%d", timestamp = 0)
                                                                "1969-12-31"


FormatTime("%Y-%m-%d", timestamp = 2147483647)
                                                                 "2038-01-18"

Who knows if Maple will be around then, however if we add one second more to timestamp we run into the 32 bit integer problem.

FormatTime("%Y-%m-%d", timestamp = 2147483648)
Error, (in StringTools:-FormatTime) timestamp value must be a 32-bit signed integer.

Can Maple get passed 2038 using timestamp?  Is there always that 32 bit limit?

 

Please Wait...