At 23:44 1/27/2004, Delz, wrote:
>Hi All,
>How do i calculate time in PHP lets say I have this example
>Input Time Started : 9:00
>Input  Time Ended : 13:00
>Total Time in Hours     : 4
>Total Time in Minutes : 240

What happens when they start at 23:59 and end at 01:30?  This
may never happen in your situation, but it's always wise to 
plan for this possibility.

UnixTime has dates, time in hours mins & secs so you can
add and subtract easily.

There are a number of functions in PHP that allow you to
manipulate these.  For more info:

Start Here to Find It Fast! ->

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to