|
|
Log in / Subscribe / Register

2038 is closer than it seems

2038 is closer than it seems

Posted Jun 2, 2014 16:00 UTC (Mon) by jch (guest, #51929)
In reply to: 2038 is closer than it seems by ScottMinster
Parent article: 2038 is closer than it seems

> setting an environment variable like $EPOCH_YEAR to 2010 would make the 32 bit time_t relative to midnight UTC, January 1, 2010.

Ouch. That would break all of the (perfectly correct) code that does

    fprintf(datafile, "%ld\n", (long)timestamp);

and expects the data to be valid in the next session.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds