OK, I did find out how to convert the string to a timestamp using strtotime()
I hope this is what I need. I was thinking more of subtracting the two times in seconds...
I then took my from timestamp and subtracted my to;
So how do I now take this total and convert it to hours and minutes?
First off, by converting these two times to timestamps does this give me an accurate number of seconds?
I need to have a result that if I pass in 10:00 pm to 12:30 am I end up with 2 hours and 30 mins
So by me taking the two timestamps and subtracting them from one another, then converting to hours and minutes...will this give me the desired result?
If so, how do I take this result and figure out how many hours and left over minutes there are?
Ultimately what I have is something that will eventually be multiplied by the number of days. SO if they enter 9:00 am to 5:00 pm it yields 8 hours but if they say it is this way over 5 days (date range) I need it to say 40 hours instead.
I am thinking I can take the timestamp difference and multiply it by the number of days in the date range then convert it to hours and minutes.
If a timestamp will not do this for me, can I do this in seconds? And How?
thank you again