Welcome Guest, Not a member yet? Register   Sign In
Time calculation between 2 dates
#2

(This post was last modified: 03-30-2017, 02:20 AM by suhindra.)

PHP Code:
$from strtotime("2017-03-09 09:26:00");
$to strtotime("2017-03-11 09:25:00");
echo 
round(abs($to $from) / 60,2). " minute"
Reply


Messages In This Thread
Time calculation between 2 dates - by sakthisiga - 03-30-2017, 12:25 AM
RE: Time calculation between 2 dates - by suhindra - 03-30-2017, 02:18 AM
RE: Time calculation between 2 dates - by salain - 03-31-2017, 12:14 AM
RE: Time calculation between 2 dates - by salain - 03-31-2017, 06:10 AM
RE: Time calculation between 2 dates - by Narf - 03-31-2017, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB