Re: mktime trouble
| From: | Chris Shiflett | Date: | Mon, 20 Oct 2003 21:02:04 +0000 |
| Subject: | Re: mktime trouble | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166843@lists.php.net to get a copy of this message | ||
--- Peter Torraca <pt@math.purdue.edu> wrote:
> print date ("m/d/y h:m:s A", mktime(16, 30, 0, 10, 10, 2003));
>
> gives the output: 10/10/03 04:10:00 AM
>
> Where did the 4:10 come from? It should be 4:*30*.
10 is the month, which is what the m means. Use i for minute:
http://www.php.net/date
Hope that helps.
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp