Whats the best way, or simply just a way to compare times while including am and pm?
I've thought about mktime but it doesn't take a parameter for am/pm
thanks, `eff
do you have an example of what you are working with/what you are comparing?
are you looking for the distance between the two times?
I just want to be able to compare two time periods and say this time is greater then that time.
$Time1="08:25:53am"; $Time2="08:25:53pm"; if($Time1<$Time2) { //IT WORKS } else { doesn't work }
I do something similar with dates and using mktime function but where can you enter in AM/PM in that function?
One option is to use [man]strtotime/man.
I guess that seems to be working.. hmm..thanks guys.