Php Time Difference In Minutes. 1 day ago or 4 months ago. Now if we want to get the time difference between current time and a previous time then we just have to put the current datetime object new datetime just like below.
2645654 minutes which is the actual number of minutes that has passed between the two dates. Datediff intval strtotime date1 strtotime date2 60. And there you go.
00 00am 02 01 2015 in this case the difference is not 24 hour so it will says 0 days.
Which is the actual number of minutes that has passed between the two dates. Better use today which should also use a default value like. 00 00am 02 01 2015 in this case the difference is not 24 hour so it will says 0 days. The datetime class will take daylight saving depending on timezone into account where the old way won t.