dworkin / dgd

Dworkin's Game Driver, an object-oriented database management system originally used to run MUDs.
https://www.dworkin.nl/dgd/
GNU Affero General Public License v3.0
103 stars 31 forks source link

32-bit epoch compliance? #38

Closed shentino closed 3 years ago

shentino commented 3 years ago

The year 2038 problem is on the horizon so I was curious what DGD will be doing in this, if anything, to handle 32-bit wraparound once time() presumably becomes negative, and what ctime() will be doing to interpret it.

Out of curiosity, what's on the drawing board?

dworkin commented 3 years ago

The year 2038 problem has been on the horizon for a long time, and it was handled more than 20 years ago.

> code ctime(0x80700000)
$170 = "Wed Apr 14 04:08:00 2038"
> code ctime(0xffffffff)
$171 = "Sun Feb  7 07:28:15 2106"
shentino commented 3 years ago

The year 2038 problem has been on the horizon for a long time, and it was handled more than 20 years ago.

> code ctime(0x80700000)
$170 = "Wed Apr 14 04:08:00 2038"
> code ctime(0xffffffff)
$171 = "Sun Feb  7 07:28:15 2106"

My mistake should have done my homework.