Page 1 of 1

about time

Posted: Wed Jul 14, 2004 1:43 am
by bugthefixer
i need to find difference of time like
if first time is 07:00 and last time is 12:00
then i need four times in between i.e.

(12:00-08:00)/4=01:00

first time=08:00+01:00
second time=first time+01:00 and so on..
how can i do that...

Posted: Wed Jul 14, 2004 2:18 am
by feyd
[php_man]mktime[/php_man] returns a unix timestamp (an integer) .. then do your math from there..