Mega Code Archive

 
Categories / Php / Date Time
 

Mktime php

<?php $now = mktime(); $taxday = mktime(0,0,0,4,15,2006); $difference = $taxday - $now; $hours = round($difference / 60 / 60); echo "Only $hours hours until tax day!"; ?>