I want to store start time & end time and calculate the total time difference between the two times.Some time i got negative times like -1 min -24 sec
by this problem...
if i am echo this code
date('Y-m-d h:m:s',1345810203);
i got the answer as 2012-08-24 02:08:03
,but i echo this code
strtotime('2012-08-24 02:08:03');
i got the answer as 1345766883
.
If the time will be 1345810167
or 1345810187
,give correct time in strtotime & date().
What is the problem ?