This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Y2K question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]