This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Y2K question
- To: glibc-linux <glibc-linux at ricardo dot ecn dot wfu dot edu>
- Subject: Re: Y2K question
- From: David Eduardo Gomez Noguera <davidgn at servidor dot unam dot mx>
- Date: Thu, 3 Feb 2000 11:45:26 -0600 (CST)
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
On Thu, 3 Feb 2000, Wolfgang Sourdeau wrote:
> On Wed, 2 Feb 2000, David Eduardo Gomez Noguera wrote:
>
> > On Wed, 2 Feb 2000, Wolfgang Sourdeau wrote:
> > dont know, but i have seen the same behavior with netscape and javascript,
> > showing ddates as 100 or in some cases 99, instead of 2000.
>
> Thanks to the people who replied me, I can guess now that it's a
> particularity (whether a bug or a feature) which permits to
> differenciate between 1900's dates and 2000's (and up) dates.
>
> I was told and could verify that this was documented in the man page.
> The actual reason for this code is still unknown, but anyway that is the
> way it's been working since back to the times of System V R3.
>
> For the lazy programmers such as me who failed to read the documentation
> in its integrity, the bug encumbs only to themselves. The fix is quite
> easy though: year = (INSTOFSTRUCTTM.tm_date % 100).
>
>
> Wolfgang
> --
> Les nombres imitent l'espace, qui est de nature si différente.
> Pascal, Pensées
>
>
>
yes, but raking the risk of being off-topic, the same thing does not apply
to navigators, this thig would make it work differently from browser to
broser, not that i like ie, but it shows 2000 instead of 100.
can check it at http://edzna.dgsca.unam.mx