PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $hour = 'T06:00:00'; $date = date('Y-m-d'); $dates = $date. $hour; $wedding = strtotime("2011-07-01 12:00:00+0400"); // or whenever the wedding is $secondsLeft = $wedding - time(); $days = floor($secondsLeft / 60*60*24); $hours = floor(($secondsLeft - $days*60*60*24) / 60*60); echo "$days days and $hours hours left";
Show:  
Copy Clear