Re: [PHP] mktime trouble

2003-10-20 Thread Chris Shiflett
--- Peter Torraca <[EMAIL PROTECTED]> 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

[PHP] mktime trouble

2003-10-20 Thread Peter Torraca
I'm taking a postgres timestamp from the database to something I can parse with PHP (i.e., a unix timestamp. Thing is, the date function isn't giving me the result I expect. Check this out: 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