Your Location is: Home > Php

PHP How to calculate the hour and minutes between two dates?

From: Romania View: 1161 Walrus 


This php script gives differences days and hour between two dates. But i can't calculate remaining minutes

    $datestr="2011-09-23 19:10:18";
    $diff=$date-time();//time returns current time in seconds
    echo "$days days $hours hours remain<br />";

Best answer