Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

The next Y2K: Y2.038K bug
http://www.switched.com/2008/03/14/...ernet-will-end/

The Unix 2038 bug probably isn't news to some. But it reminds me of the prev
alent
attitude ten years ago, that COBOL programmers were negligent or "lazy" for 
taking
shortcuts with dates. I'm guessing that in 1970 no one thought we'd be using
 UNIX in
the next century.


Report this thread to moderator Post Follow-up to this message
Old Post
Robin Lee
03-15-08 11:56 PM


Re: The next Y2K: Y2.038K bug
On Sat, 15 Mar 2008 10:19:26 -0400, Robin Lee <robinlee@news.com> wrote:

>http://www.switched.com/2008/03/14/...ernet-will-end/
>
>The Unix 2038 bug probably isn't news to some. But it reminds me of the pre
valent
>attitude ten years ago, that COBOL programmers were negligent or "lazy" for
 taking
>shortcuts with dates. I'm guessing that in 1970 no one thought we'd be usin
g UNIX in
>the next century.

Unix's system timer has a window 1970 through 2037 for positive values and 1
901 through
1969 for negative values.  It is stored in an unsigned int, which has 31 bit
s of data and
a sign. The timer resolution is one second. There are 2^31 seconds in 68 yea
rs.

There is no easy fix for two reasons:
1. It is not practical to upgrade the operating system in embedded processor
s,
such as in car engines, medical devices, telephones.
2. Some have used timer_t format in files and messages. Any change would 'br
eak'
old software and file data.

Operating systems compiled to 64 bits store the time as a 63-bit long int, w
hich can
represent billions of years. Records and messages using timer_t must be refo
rmatted. Going
to an unsigned integer would buy 68 years, but break dates before 1970 e.g. 
your birth
date. A sliding window would be unacceptable because the recipient of messag
es and records
would not know where the creator's epoch began.

Who cares? We'll be gone by 2038.  :)



Report this thread to moderator Post Follow-up to this message
Old Post
Robert
03-15-08 11:56 PM


Re: The next Y2K: Y2.038K bug

"Robert" <no@e.mail> wrote in message
 news:n7dot3h2c8kahcckj1gm612pl6j2o4nunh@
4ax.com...
> On Sat, 15 Mar 2008 10:19:26 -0400, Robin Lee <robinlee@news.com> wrote:
> 
>
> Unix's system timer has a window 1970 through 2037 for positive values and
> 1901 through
> 1969 for negative values.  It is stored in an unsigned int, which has 31
> bits of data and
> a sign. The timer resolution is one second. There are 2^31 seconds in 68
> years.
>
> There is no easy fix for two reasons:
> 1. It is not practical to upgrade the operating system in embedded
> processors,
>    such as in car engines, medical devices, telephones.
> 2. Some have used timer_t format in files and messages. Any change would
> 'break'
>    old software and file data.
>
> Operating systems compiled to 64 bits store the time as a 63-bit long int,
> which can
> represent billions of years. Records and messages using timer_t must be
> reformatted. Going
> to an unsigned integer would buy 68 years, but break dates before 1970
> e.g. your birth
> date. A sliding window would be unacceptable because the recipient of
> messages and records
> would not know where the creator's epoch began.
>
> Who cares? We'll be gone by 2038.  :)
>
Speak for yourself.

If you can't take it with you, I ain't going...:-)

Pete.
--
"I used to write COBOL...now I can do anything."
>



Report this thread to moderator Post Follow-up to this message
Old Post
Pete Dashwood
03-15-08 11:56 PM


Re: The next Y2K: Y2.038K bug

Pete Dashwood wrote:
> "Robert" <no@e.mail> wrote in message
>  news:n7dot3h2c8kahcckj1gm612pl6j2o4nunh@
4ax.com... 
> Speak for yourself.
>
> If you can't take it with you, I ain't going...:-)

Ditto, I worked too hard for it all.

>
> Pete.
> --
> "I used to write COBOL...now I can do anything."

I always could do anything, I'm a Rexx coder :)

Mickey

Report this thread to moderator Post Follow-up to this message
Old Post
Mickey
03-25-08 11:56 PM


Re: The next Y2K: Y2.038K bug
On Tue, 25 Mar 2008 11:48:11 -0700, Mickey wrote:

> I always could do anything, I'm a Rexx coder :)
>
> Mickey

Last time I tried it, REXX was appallingly slow and CPU-intensive. Has
that changed?

Tim

Report this thread to moderator Post Follow-up to this message
Old Post
tim
03-25-08 11:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:35 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.