Re: PHP 4.0 Bug #8828 Updated: mktime using mday<=0

From: Date: Wed, 14 Mar 2001 18:56:00 +0000
Subject: Re: PHP 4.0 Bug #8828 Updated: mktime using mday<=0
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-48933@lists.php.net to get a copy of this message
Hi Sascha, Look at 7.23.2.6 Normalization of broken-down times -Jason ----- Original Message ----- From: "Sascha Schumann" <sascha@schumann.cx> To: <jason@php.net> Cc: <php-dev@lists.php.net> Sent: Wednesday, March 14, 2001 12:49 PM Subject: Re: [PHP-DEV] PHP 4.0 Bug #8828 Updated: mktime using mday<=0 > > This actually is part of the Ansi C standard. > > > > Solaris 8 manpage ----------------------- > > > > The original values of the components may be either greater > > than or less than the specified range. For example, a tm_hour > > of -1 means 1 hour before midnight, tm_mday of 0 means the day > > preceding the current month, and tm_mon of -2 means 2 months > > before January of tm_year > > This seems to be a Solaris extension. It does not contradict > C99, but I would not consider it portable. Neither section > 7.23.1, "Components of time" nor 7.23.2.3, "The mktime > function" say anything with regard to values which exceed the > normal ranges as specified in 7.23.1. > > - Sascha Experience IRCG > http://schumann.cx/ ÊÓ®kÄž¿ > =-e'ô‡http://schumann.cx/ircg > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#48933) next »