Thought Y2k was bad ? Wait till 2038
Moderator: Edi
- Sarevok
- The Fearless One
- Posts: 10681
- Joined: 2002-12-24 07:29am
- Location: The Covenants last and final line of defense
Thought Y2k was bad ? Wait till 2038
If you are a C/C++ programmer like me chances are you already know this. Regardless I will repeat it for folks who do not know.
The C Runtime uses the time_t structure which is actualy a long integer that stores the number of seconds passed since midnight Jan 1st, 1970. Since an long int is 32 bits time_t maxes out at 2147483643 seconds. That is 68 years or in other words added to 1970 in the year 2038. That means we will be in big trouble if the C runtime library is not updated before that.
Good luck and see you in 2038 !
The C Runtime uses the time_t structure which is actualy a long integer that stores the number of seconds passed since midnight Jan 1st, 1970. Since an long int is 32 bits time_t maxes out at 2147483643 seconds. That is 68 years or in other words added to 1970 in the year 2038. That means we will be in big trouble if the C runtime library is not updated before that.
Good luck and see you in 2038 !
I have to tell you something everything I wrote above is a lie.
- BoredShirtless
- BANNED
- Posts: 3107
- Joined: 2003-02-26 10:57am
- Location: Stuttgart, Germany
- Sarevok
- The Fearless One
- Posts: 10681
- Joined: 2002-12-24 07:29am
- Location: The Covenants last and final line of defense
Of course the C run time library will be be improved over time, it has been happening since the early eighties. However this particular bug was spotted around mid nineties. Those of you who use microsoft tools will be aware of several articles in developer magazines mentioning it. But so farBoredShirtless wrote:Don't panic, they will be updated.
nothing has happened.
In reality C will inevitiably be replaced with something better by 2038 so there is a very good chance that no one will suffer from this bug.
I have to tell you something everything I wrote above is a lie.
- BoredShirtless
- BANNED
- Posts: 3107
- Joined: 2003-02-26 10:57am
- Location: Stuttgart, Germany
The problem is in the time.h library. If your program uses this library, all you gotta do is install the new library and recompile.Tribun wrote:Does it mean that all stuff, that is written in C ist then virually useless rubbish, to be kicked into the trash bin? Whow. All old Data is then lost forever, right?
- BoredShirtless
- BANNED
- Posts: 3107
- Joined: 2003-02-26 10:57am
- Location: Stuttgart, Germany
- Tribun
- Jedi Council Member
- Posts: 2164
- Joined: 2003-05-25 10:02am
- Location: Lübeck, Germany
- Contact:
Can you explain a bit, what this means, and what practically would fall under that?BoredShirtless wrote:The problem is in the time.h library. If your program uses this library, all you gotta do is install the new library and recompile.Tribun wrote:Does it mean that all stuff, that is written in C ist then virually useless rubbish, to be kicked into the trash bin? Whow. All old Data is then lost forever, right?
Most people don't bother writing their own code for getting time. They use a standard library (time.h) that is included with most compilers. An update of time.h and perhaps a bit of code editing is all that is needed to correct this, in theory.Tribun wrote:Can you explain a bit, what this means, and what practically would fall under that?
- DPDarkPrimus
- Emperor's Hand
- Posts: 18399
- Joined: 2002-11-22 11:02pm
- Location: Iowa
- Contact:
- Crayz9000
- Sith Apprentice
- Posts: 7329
- Joined: 2002-07-03 06:39pm
- Location: Improbably superpositioned
- Contact:
It's also used in almost all application programming. Why, do you think that Microsoft would write Office in FORTRAN?
A Tribute to Stupidity: The Robert Scott Anderson Archive (currently offline)
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
- Darth Wong
- Sith Lord
- Posts: 70028
- Joined: 2002-07-03 12:25am
- Location: Toronto, Canada
- Contact:
Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC
"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness
"Viagra commercials appear to save lives" - tharkûn on US health care.
http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
-
- Fucking Awesome
- Posts: 13834
- Joined: 2002-07-04 03:21pm
That's brilliant. You can rent some floorspace, I'll draw up the business cards, and we'll get someone else to tap out some random code-like shit.Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
The End of Suburbia
"If more cars are inevitable, must there not be roads for them to run on?"
-Robert Moses
"The Wire" is the best show in the history of television. Watch it today.
"If more cars are inevitable, must there not be roads for them to run on?"
-Robert Moses
"The Wire" is the best show in the history of television. Watch it today.
- Sea Skimmer
- Yankee Capitalist Air Pirate
- Posts: 37390
- Joined: 2002-07-03 11:49pm
- Location: Passchendaele City, HAB
It would probably sell better with a title like "Y2.038Kilo Protection Pro"Darth Wong wrote:Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
"This cult of special forces is as sensible as to form a Royal Corps of Tree Climbers and say that no soldier who does not wear its green hat with a bunch of oak leaves stuck in it should be expected to climb a tree"
— Field Marshal William Slim 1956
— Field Marshal William Slim 1956
-
- Sith Devotee
- Posts: 2922
- Joined: 2002-07-11 04:42am
Just wondering, what the hell was on that bogus software anyway? I remember right before 2000 came my parents got some of that crap, which I never bothered installing, not that I needed to. It had to be able to do something, right?Darth Wong wrote:Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
- Drooling Iguana
- Sith Marauder
- Posts: 4975
- Joined: 2003-05-13 01:07am
- Location: Sector ZZ9 Plural Z Alpha
For that, you must die.Andrew J. wrote:Does anyone even use C/C++ anymore?
"Stop! No one can survive these deadly rays!"
"These deadly rays will be your death!"
- Thor and Akton, Starcrash
"Before man reaches the moon your mail will be delivered within hours from New York to California, to England, to India or to Australia by guided missiles.... We stand on the threshold of rocket mail."
- Arthur Summerfield, US Postmaster General 1953 - 1961
"These deadly rays will be your death!"
- Thor and Akton, Starcrash
"Before man reaches the moon your mail will be delivered within hours from New York to California, to England, to India or to Australia by guided missiles.... We stand on the threshold of rocket mail."
- Arthur Summerfield, US Postmaster General 1953 - 1961
- The Cleric
- BANNED
- Posts: 2990
- Joined: 2003-08-06 09:41pm
- Location: The Right Hand Of GOD
Since we have 35 more years before we have to worry about this, I hope that MS will be able to fix what would be a real problem. BTW, did ANYTHING happen with Y2K? It just sort of went away.
{} Thrawn wins. Any questions? {} Great Dolphin Conspiracy {} Proud member of the defunct SEGNOR {} Enjoy the rythmic hip thrusts {} In my past life I was either Vlad the Impaler or Katsushika Hokusai {}
- Crayz9000
- Sith Apprentice
- Posts: 7329
- Joined: 2002-07-03 06:39pm
- Location: Improbably superpositioned
- Contact:
Most of the problems were extremely minor. Only those people still running ancient 1970s-era mainframes had to worry about catastrophic failures, really.StormTrooperTR889 wrote:BTW, did ANYTHING happen with Y2K? It just sort of went away.
A Tribute to Stupidity: The Robert Scott Anderson Archive (currently offline)
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
- The Cleric
- BANNED
- Posts: 2990
- Joined: 2003-08-06 09:41pm
- Location: The Right Hand Of GOD
What organization could possibly get away with 70's mainframes?
{} Thrawn wins. Any questions? {} Great Dolphin Conspiracy {} Proud member of the defunct SEGNOR {} Enjoy the rythmic hip thrusts {} In my past life I was either Vlad the Impaler or Katsushika Hokusai {}
- aphexmonster
- Jedi Council Member
- Posts: 1668
- Joined: 2003-04-12 10:42pm
- Location: Sacramento
- Contact:
- 2000AD
- Emperor's Hand
- Posts: 6666
- Joined: 2002-07-03 06:32pm
- Location: Leeds, wishing i was still in Newcastle
Pity it wasn't Microsoft.StormTrooperTR889 wrote:What organization could possibly get away with 70's mainframes?
Ph34r teh eyebrow!!11!Writers Guild Sluggite Pawn of Chaos WYGIWYGAINGW so now i have to put ACPATHNTDWATGODW in my sig EBC-Honorary Geordie
Hammerman! Hammer!
Hammerman! Hammer!
- The Cleric
- BANNED
- Posts: 2990
- Joined: 2003-08-06 09:41pm
- Location: The Right Hand Of GOD
Oh, that wouldn't have been pretty. The whole MS company crashing?
{} Thrawn wins. Any questions? {} Great Dolphin Conspiracy {} Proud member of the defunct SEGNOR {} Enjoy the rythmic hip thrusts {} In my past life I was either Vlad the Impaler or Katsushika Hokusai {}