Wrong arithmetics with date()
Posted: Sat Aug 10, 2002 4:55 am
Hi!
Look at this statement:
print date("i:s", 3599); // result -> 59:59 - right!
print date("H.i:s", 3599); // result -> 01.59:59 - wrong of course!
print date("H.i.s", 3600); // result -> 02.00:00 - Crazy or not!
I've tried with many params but it seems that the hour value is always shifted 1 ahead.
Anyone can help?
Tks
Mimmo
Look at this statement:
print date("i:s", 3599); // result -> 59:59 - right!
print date("H.i:s", 3599); // result -> 01.59:59 - wrong of course!
print date("H.i.s", 3600); // result -> 02.00:00 - Crazy or not!
I've tried with many params but it seems that the hour value is always shifted 1 ahead.
Anyone can help?
Tks
Mimmo