w1ww Established Member ★ 15 ★ Impact 9 Jan 10, 2008 5K views 2 replies #1 Hello, Let's say I have this two dates: 22-01-2008 09:25:00 22-01-2008 09:35:00 I would like to know how can I compare them and say if 10minutes have gone or not. Thanks in advanced! Regards.
Hello, Let's say I have this two dates: 22-01-2008 09:25:00 22-01-2008 09:35:00 I would like to know how can I compare them and say if 10minutes have gone or not. Thanks in advanced! Regards.
Daniel Danltn.comVIP Member VIP ★ 15 ★ Impact 133 Jan 10, 2008 #2 http://uk.php.net/strtotime PHP: <?php if((strtotime($time1) + 600) < strtotime($time2)) { /* Do some stuff */ } else { /* Do some other stuff */ } ?> Play around with the '600' amount and the < sign if they are not to your liking.
http://uk.php.net/strtotime PHP: <?php if((strtotime($time1) + 600) < strtotime($time2)) { /* Do some stuff */ } else { /* Do some other stuff */ } ?> Play around with the '600' amount and the < sign if they are not to your liking.