Calculating time unused

From: Date: Tue, 30 Sep 2003 10:32:42 +0000
Subject: Calculating time unused
Groups: php.db 
Request: Send a blank email to php-db+get-30766@lists.php.net to get a copy of this message
Hi, I have a table called Bookings which has two important columns; Booking_Start_Time and Booking_End_Time. These columns are both of type DATETIME. Given any day how can I calculate how many hours are available between the hours of 09.00 and 17.30 so a user can see at a glance how many hours they have unbooked on a particular day, can this be done with a query or do I have to work it out with PHP? Thanks for your help

« previous php.db (#30766) next »