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

From: Date: Wed, 14 Mar 2001 18:49:44 +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-48932@lists.php.net to get a copy of this message
> 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/ http://schumann.cx/ircg

« previous php.dev (#48932) next »