Re: problem with mktime
| From: | Nadim Attari | Date: | Thu, 26 Jun 2003 13:51:08 +0000 |
| Subject: | Re: problem with mktime | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152986@lists.php.net to get a copy of this message | ||
> The following line of code doesn't work for me:
> $previous_issue_unixdate = mktime(0, 0, 0, $previous_issue_month,
> $previous_issue_day, $previous_issue_year, 0);
> $previous_issue_month is set to 06, _issue_day is 30 and _issue_year to
> 2003. Still $previous_issue_unixdate is emtpy.
> anders thoresson
--------------------------------------------------------------------------
echo mktime(0, 0, 0, 09, 30, 2002, 0);
echo mktime(0, 0, 0, 9, 30, 2002, 0);
OUTPUTS:
========
1009656000
1033329600
NOTE:
=====
09 and 9 are not the same !!!
09 = octal number (well 9 doesn't exist in octal !!!)
9 = digital number
But mktime(0, 0, 0, 06, 30, 2002, 0) and mktime(0, 0, 0, 6, 30, 2002, 0)
should produce the same result:
1025380800
1025380800
> Still $previous_issue_unixdate is emtpy.
I dunno what to say... should work
Hope it helps...
Nadim Attari
http://www.alienworkers.com