The unix localtime function returns
years as # of years since 1970 (even though
the dates are stored internally
as seconds since 1970). Giving
an apparent epoch of 1900 (even
though its really 1970).
Also, most databases represent
dates as YYYY-MM-DD, but
some don't allow dates before 1900.
1900 as an epoch is more common in application
programs than at the OS level. | [reply] |
I understand all that, I was just wondering if anyone knew
of an *OS* that actually used Jan 1, 2000 as their epoch. You'd
think it would be more common. Then again, if unix really *did*
use 1900, we'd be in a lot of trouble. It would have been a lot
easier if they had just used a 64-bit number and started at
year "0". :)
| [reply] |