Changing the epoch
Changing the epoch
Posted May 23, 2014 21:05 UTC (Fri) by ScottMinster (subscriber, #67541)In reply to: Changing the epoch by corbet
Parent article: 2038 is closer than it seems
time_t is signed, so it can represent 68 years in either direction of the epoch (2^31/86400/365.25). Setting the epoch to 2010 would allow representation from 1942 to 2078.
It's not a good long term solution, but could be a workaround for some applications.
