[m-dev.] diff: w3 y2k bug fix
Peter Ross
petdr at cs.mu.OZ.AU
Mon Dec 6 15:12:43 AEDT 1999
On 06-Dec-1999, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 06-Dec-1999, Peter Ross <petdr at cs.mu.OZ.AU> wrote:
> > Our first y2k bug fix?
>
> Nope, that would be our second.
>
> Where can I find documentation on php3
> so that I can figure out whether this code
> is correct or not?
>
/usr/doc/php3-doc on hydra
or
http://hydra.cs.mu.oz.au/doc/php3-doc/
> > +++ list.inc 1999/12/06 02:44:05
> > + $year_2digits=date("y", mktime(0,0,0,$mo,1,$yr));
>
> If that is POSIX mktime(), then that looks wrong to me...
> shouldn't that be `$yr - 1900' rather than `$yr'?
>
Not according to the documentation.
Pete
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list