Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,162,032 members, 7,849,163 topics. Date: Monday, 03 June 2024 at 03:34 PM

The Year 2038 Problem And Why The Clocks On Some Computers Will Stop Working - Education - Nairaland

Nairaland Forum / Nairaland / General / Education / The Year 2038 Problem And Why The Clocks On Some Computers Will Stop Working (91 Views)

The Application Wearable Computers In Tropical Disease Management / Prince Osisioma Foundation Donates Computers And Free Internet To School In Ukpo / Richard Appiah Akoto: Computers Donated To Ghana School (Photos) (2) (3) (4)

(1) (Reply)

The Year 2038 Problem And Why The Clocks On Some Computers Will Stop Working by RubiesBanking: 9:47am On May 21
The Year 2028 problem is a problem caused by how electronics and computer devices store dates. When these dates reach 1 second after 03:14:07 UTC on January 2038 they will have an error and incorrectly store the wrong date (in some cases 20:45:52 on Friday, 13 December 1901). To understand why this happens, we need to understand the background on how these dates are stored.


WHAT IS THE YEAR 2038 PROBLEM?

Basically, each computer keeps track of time in the UNIX format simply referred to as a timestamp. UNIX time is the number of seconds that have elapsed since midnight on 01 January 1970 (UTC/GMT), which is known as the "epoch".

For example

The current UNIX time as of when writing this article is 1716278870

Using an online tool to convert UNIX time to get date and time writing this article will give the results below
[img]
https://bashify.io/img/db810f30d0983e22032a1c6c6fa948a6[/img]

Most 32-bit computers can only hold 32-bit signed variables (2^32). A 32-bit signed variable can hold numbers as big as 2 147 483 647.

So once 2 147 483 647 seconds since the epoch has passed, which will be on the 19th of January 2038 at 03:14:07 UTC, the time variable will overflow and revert to -2 147 483 647 causing the computer to think the date is the 13th of December 1901.



Note this problem does not just impact UNIX systems as many programming languages and systems adopted this date format to represent time.


Will I Be Affected

Almost certainly not, since all smartphones and computers made within the last decades are 64-bit, which can hold numbers big as 9 223 372 036 854 775 807 and their time variable won't overflow until the year 292 277 026 596. So most consumer devices (except really old ones) will not be affected.

As for other devices (Like ATMs, Military equipment and others), by the year 2038 it is likely that most 32-bit devices will no longer be in use because of the impending time overflow.


How Do I Check If This Will be A Problem.

All systems are different and it would be impossible to come up with a full list of things to check but here are some things to look out for:

- Databases that have timestamps stored as signed 32 bit integers
- Hardware running 32 bit software or operating systems
- Embedded systems that may store dates as signed 32 bit integer timestamps
- Database functions that use 32 bit integer representations of times such as UNIX_TIMESTAMP()

You will need to rely on experts to check all the systems especially if you have critical software running that you absolutely can’t afford to break for any amount of time.

If you are running all 64 bit software this does not guarantee you won’t have any issues. Even in these systems dates can still be stored using a signed 32 bit integer and these systems could rely on other systems that may have this issue.

It’s also important to note that not all 32 bit software will have this issue, in fact the vast majority of 32 bit software probably won’t have this issue. A lot of 32 bit software will store dates in special structures that can handle dates far in excess of the year 2038 but the only real way to know how the dates are stored and used in a system is to check.


https://theyear2038problem.com/

Re: The Year 2038 Problem And Why The Clocks On Some Computers Will Stop Working by MrBrownJay1(m): 8:08pm On May 21
the same yeye nonsense they told us about dec 31st 1999

(1) (Reply)

How To Apply For SAT Digital Exam In Nigeria-the Cost Of SAT Exam In Nigeria / BREAKING : Sokoto University Gets 10 New Degree Programs / Group Fumes Over Appointment Of Dickson Akoh Into Jigawa Varsity Board:

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.