RE: [PHP] mktime() and the format of the day number entry
| From: | Ford, Mike [LSS] | Date: | Fri, 03 Jan 2003 11:32:40 +0000 |
| Subject: | RE: [PHP] mktime() and the format of the day number entry | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130079@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Johnson, Kirk [mailto:kjohnson@zootweb.com]
> Sent: 02 January 2003 23:29
>
> The month behaves the same: both '08' and '09' are treated as zero by
> mktime().
A leading 0 on a number denotes it as octal. 08 and 09 are not valid octal
numbers. PHP is interpreting as much of the number as it can (i.e. the
leading 0) and ignoring the invalid part. This gives you your zero results.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211