Re: convert 2 dates to number of hours
| From: | José Moreira | Date: | Mon, 30 Sep 2002 15:43:14 +0000 |
| Subject: | Re: convert 2 dates to number of hours | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22096@lists.php.net to get a copy of this message | ||
thank you for your help,
i figured this out : SELECT id, to_days(t1.closedate) - to_days(t1.date) FROM tracking AS t1
...
yes i am .. whe are using the IRM <http://irm.schoenefeld.org/> for internal help desk and im creating event reports ...
it only makes sense to include in the calculations the work hours so thats what im trying to do, to make the reports more viable ....
Chris Boget wrote:
Hello, how can i calculate the number of hours between 2 dates,( $unixDateTimeTo - $unixDateTimeFrom ) * 60 * 60and better yet , the work hours ( example from 8.30am to 6pm excluding weekends)This would be more involved. Are you trying to find out how many work hours there were between 2 dates? Chris