OK here is 1 for the masses. I was asked to make some logs from a database that houses our ticketing system. We have SLA's (Service level agreements) and have to complete the tickets within a certain amount of time. I have a script that grabs data from the database and I have to see how much time is left on the SLA. I have a date and time that the ticket was opened and I need to compare it to the date and time that the script is run on. BUT.... yes there is a but. But we only track from 8am - 5pm (9 hours) Mon through Fri. Here is the format of the date and time field that the database gives me 2005-02-04 13:32:08.000.
Here is what I have so far:
This gives me the difference in seconds and does not take in account the 5 out of 7 days of the week.
I need to see how many hours and minutes the tickets have been open during M - F 8am - 9pm.
Any help would be great.
THANKS
timgerr
-How important does a person have to be before they are considered assissinated instead of just murdered?
Here is what I have so far:
Code:
$today = date(U);
$database = '2005-02-03 03:58:19';
$old = strtotime("$database");
$calc = $new - $old;
I need to see how many hours and minutes the tickets have been open during M - F 8am - 9pm.
Any help would be great.
THANKS
timgerr
-How important does a person have to be before they are considered assissinated instead of just murdered?