Sascha + Everyone,

Thanks for pointing that out ( I should have known better to argue standards with 
Sascha: )
I reviewed the official C99 ANSI/ISO/IEC 9899-1999 and it does make no mention as to 
the 
use of mday=0 or the normalization of tm structs as specified in the proposal that I 
was citing.

This is not potable,  though I have seen many Unix's act this way. So should we a) 
just change our 
docs to say something to the effect of "Some UNIX's support mday=0 (Possible list of 
known os's) , but this is not the defacto
standard and you should refer to your system docs". b) remove all references from it
or c) detect when it doesn't work and emulate the functionality.

I vote for (A), seeing as there is no set standard for this, and there is no guarantee 
that the mday=0
functionality will stay. 

What do you guys think?
-Jason


 - 

----- Original Message ----- 
From: "Sascha Schumann" <[EMAIL PROTECTED]>
To: "Jason Greene" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 14, 2001 1:39 PM
Subject: Re: [PHP-DEV] PHP 4.0 Bug #8828 Updated: mktime using mday<=0


>     Hi,
> 
> > Either way though, you are saying that this has not been
> > excepted into the final C99?
> 
>     Correct.  A bit of googling brought up this page where Paul
>     Eggert documents why the proposal is broken.
> 
>     http://www.cl.cam.ac.uk/~mgk25/c-time/comment-eggert.html
> 
> > So should we depend on this being a portable standard yet? I
> > have used the mday=0 on Solaris, and Linux and have seen it in
> > the IRIX manpages
> 
>     It is not portable as the Mac OS X case shows.  It would be
>     hard to convince a vendor to implement a certain feature, if
>     even the proposal for that feature was rejected by the
>     responsible language committee.
> 
>     - Sascha                                     Experience IRCG
>       http://schumann.cx/                http://schumann.cx/ircg
> 
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to