Posted by Blayde on 08/03/06 20:17
bobzimuta wrote:
> > What's the easiest way in php to calculate the hour and minutes (HH:MM)
> > between 2 times? (unix timestamps)
>
> A Unix timestamp is in seconds. Subtract the two and you have the
> difference between the two in seconds... Need more?
It would also be wise to take the absolute value, abs(), of the
subtraction in case of a negative result
-Blayde
Navigation:
[Reply to this message]
|