i heard that time.h library will give error messages in 2038.
is that true
i heard that time.h library will give error messages in 2038.
is that true
There are bound to be time problems in the future...... so start saving for a new compiler....... you only have 36 years
The 2038 problem is not a problem with the C language - it is a problem with the way computers track time. The short answer is your computer tracks the number of seconds since "epoch" (Jan 1, 1970) in a variable. On POSIX systems, this variable type is 'time_t', which is actually a typedef for long. Sometime in 2038, the number of seconds since epoch will be greater than the value a long can hold.
[edit]
I intend to be retired before 2038, so I'm not too worried about it ;)
[/edit]
More information here.
Last edited by Deckard; 01-15-2002 at 10:41 AM.
Jason Deckard