I have a database that has a ten digit date (int) field number looks like this: 1142429652 Best I can figure it translates to the number of seconds since the Magna Carta or the Treaty of Versailles or maybe since Columbus supposedly found America. Can anyone translate this one for me? Tks.
isnt that the numerical number down to the second since 1970? In c you have you cdate(1142429652); to get the actual date it represents. I don't know how to convert it otherwise
I dunno. I think its just the standard that it was set to. seems right too: 1 142 429 652 seconds = 36.2021844 years 1970 + 36.2021844 = 2006.2021844
Some UNIX programmer(s) decided Jan 1, 00:00:00 UTC 1970 would make a nice date for the UNIX epoch. Don't ask me why... as I think UNIX wasn't around until 1972? I guess they liked even dates. It runs out sometime in 2038 if they are still using POSIX time with a signed 32 bit integer. I suspect by then people won't be silly enough to make such a big deal of it... like with Y2K.