Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 16-05-2005, 11:17 AM   #1 (permalink)
Apprentice
 
Join Date: Apr 2005
Posts: 57
Default Year 2038 problem !!


i recently got a forwarded message that goes like this :
" Read This.

Most programs written in the C programming language are relatively immune to the Y2K problem, but suffer instead from the Year 2038 problem. This problem arises because most C programs use a library of routines called the standard time library (time.h). This library establishes a standard 4-byte format for the storage of time values, and also provides a number of functions for converting, displaying and calculating time values.

The standard 4-byte format assumes that the beginning of time is January 1,1970, at 12:00:00 a.m. This value is 0. Any time/date value is expressed as the number of seconds following that zero value. So the value 919642718 is 919,642,718 seconds past 12:00:00 a.m. on January 1, 1970, which is Sunday,February 21, 1999, at 16:18:38 Pacific time (U.S.). This is a convenient format because if you subtract any two values, what you get is a number of
seconds that is the time difference between them. Then you can use other functions in the library to determine how many
minutes/hours/days/months/years have passed between the two times.

If you have read How Bits and Bytes Work, you know that a signed 4-byte integer has a maximum value of 2,147,483,647, and this is where the Year 2038 problem comes from. The maximum value of time before it rolls over to a negative (and invalid) value is 2,147,483,647, which translates into January 19, 2038. On this date, any C programs that use the standard time library will start to have problems with date calculations.

This problem is somewhat easier to fix than the Y2K problem on mainframes,fortunately. Well-written programs can simply be recompiled with a new version of the library that uses, for example, 8-byte values for the storage format. This is possible because the library encapsulates the whole time activity with its own time types and functions (unlike most mainframe programs, which did not standardize their date formats or calculations). So the Year 2038 problem should not be nearly as hard to fix as the Y2K
problem was.
Wanna try it for real? change ur system date to some day after january 20th 2038, run yahoo messenger, it will crash. "

Any comments on this guys???
and is this true ???
[/b]
__________________
NOBODY
is perfect,,, I am NOBODY
chanduthebest is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-05-2005, 11:55 AM   #2 (permalink)
da' Ťurntable ruleth
 
techno_funky's Avatar
 
Join Date: Dec 2003
Location: Mumbai
Posts: 847
Default

please continue here
http://www.thinkdigit.com/forum/viewtopic.php?t=20107
__________________
| Dell Studio 15 | iPod Touch 16GB (Stolen) | iPod Video 5.5G 30GB | Sony Ericsson W910i |
| Sennheiser PX 100 | Sennheiser HD 202 |Creative EP630 | Altec Lansing ATP 3 |
techno_funky is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by abhidev
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 06:07 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2