• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Today is December 31, 1969?

death2all110

Android Expert
Jun 25, 2010
1,996
1,210
Illinois, US
Ahh. The LG Ally also suffers from this infamous UNIX Bug where the time is read as being equal to 0 (Epoch Date or January 1, 1970).

Interesting read here:
Real Life Debugged Blog Archive Yo, Today is December 31, 1969?

ScreenShot for proof:

103ebuw.jpg


The numbers were masked for obvious reasons.

Crazy huh?

This is fairly common. Google the date.

Some tidbits, for you technical people....
For UNIX, life started on January 1, 1970 Coordinated Universal Time (UTC). This “Epoch Date” is 0, and UNIX time increments once a second up to the present time. So, ‘0′ in UNIX time-speak equates to January 1, 1970 UTC. (Note: UTC is based on an atomic clock and is synchronized to within about a second of Greenwich Mean Time (GMT). GMT was the time standard based on solar observations at the Royal Observatory in Greenwich, London until about 1925. But UTC and GMT are often used interchangeably.)
Now, I live in the Eastern Time Zone which is 5 hours behind UTC. So at the UNIX bewitching hour in MY HOUSE, UNIX time started at December 31, 1969 at 7:00 PM.
Check it yourself - stick 0 into the UNIX-to-Date/Time machine to see the magic date.
The Old New Thing presents a list of several “sentinel timestamps” like this one, with the variable format and value that lead to these “magic” dates.
So What? Some software applications use 0 to indicate an undefined or NULL date. If this is accidentally assumed to be a valid UNIX time, the value is misinterpreted as … December 31, 1969.
Just thought this was pretty interesting/cool.

Some More:
A “Start of Time” implies an “End of Time” and other Sentinel Timestamps
Now, UNIX time starts at 0 - January 1, 1970 UTC. As the counter increments every second, eventually it gets larger than the variable that holds it. Time is stored different ways on different systems, but the most common is a signed long int, or 32 bits. 31 are available to count from zero, so the largest UNIX number (and hence when UNIX time ENDS) is 2^31 or 2147483648 (in HEX, 0
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones