Re: Figuring Time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In message <D2492F6ED6E4425B97F2B8D8A6CF65E0@xxxxxxxxx>, Michael Reaves
<mreaves@xxxxxxxx> writes
>Group,
>
> 
>
>I have 3 times in a mysql database.  Start time, end time and amount of time
>spent at lunch.  All are in a time field.  How can I figure the daily time,
>end-start-amount time spent at lunch, with php?

SELECT TIMEDIFF(TIMEDIFF(timeend,timestart),lunch) FROM mytable

-- 
Pete Clark

Advertise your events in Spain - local and free
http://hotcosta.com/events.php

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux