Re: Hi what is diff. Between mktime() and UNIX_TIMESTAMP()
| From: | Rasmus Lerdorf | Date: | Thu, 14 Mar 2002 10:53:39 +0000 |
| Subject: | Re: Hi what is diff. Between mktime() and UNIX_TIMESTAMP() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88465@lists.php.net to get a copy of this message | ||
> UNIX_TIMESTAMP(2002-03-21 08:30:00) and
> mktime(2002,03,21,08,30,00) equal or not?
Careful, 08 != 8
A leading 0 indicates an octal number in PHP.
Also, you have the arguments to mktime() completely messed up. It is
hour, minute, second, month, day, year. 2002 is a strange-looking hour.
-Rasmus