time_t size and year 2038 wrap
From: Andy Jackman (ajackman_at_deckertelecom.net)
Date: 08/07/03
- Previous message: Jason Staudenmayer: "RE: Ethernet & DHCP Fails on Cable Modem to Internet"
- Next in thread: Kenneth Goodwin: "RE: time_t size and year 2038 wrap"
- Maybe reply: Kenneth Goodwin: "RE: time_t size and year 2038 wrap"
- Reply: Gordon Messmer: "Re: time_t size and year 2038 wrap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: redhat-list@redhat.com Date: Thu, 07 Aug 2003 16:46:09 +0100
Hi,
I'm using redhat 7.4 and in bits/types.h time_t is defined as long int.
This causes a wrap in 2038 (as I'm sure you all know). I searched the
redhat site for date 2038 and found very little current stuff. The
attached post from 1998 seems to say 'all will be well' but I'm having a
hard time persuading my boss that it's clever to use a date system that
expires in 35 years. I need both date and time. I can write my own date
to/from string routines. What I don't want to do is write the equivalent
of the time() function to get the current date & time. Is there a 64 bit
version of time() available for the current version(s) of linux? Does
anyone have any other ideas?
Thanks,
Andy.
From: rick hamell <hamellr dsinw com>
To: redhat-install-list redhat com
Subject: Re: Y2.038K ISSUES -was Re: Y2K Issues
Date: Sun, 11 Oct 1998 17:03:54 -0700 (PDT)
--------------------------------------------------------------------------------
> my question is/was not about y2k per se but about YEAR 2038 COMPLIANCE.
> is the unix/linux community doing anything to address this issue? How
> long will we/they wait?
Ahh, my understanding is that date is a 32 bit number, so it
stands to reason that when we change to a 64 bit operating system, the
number will change also. For Linux I don't know when that will be, but
FreeBSD will supposedly be there in version 3.2 (3.0 is due out in days
:)
So I'd guess that it'll be soon!
Rick
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Jason Staudenmayer: "RE: Ethernet & DHCP Fails on Cable Modem to Internet"
- Next in thread: Kenneth Goodwin: "RE: time_t size and year 2038 wrap"
- Maybe reply: Kenneth Goodwin: "RE: time_t size and year 2038 wrap"
- Reply: Gordon Messmer: "Re: time_t size and year 2038 wrap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|