[ create a new paste ] login | about

Link: http://codepad.org/Je3RTysF    [ raw code | output | fork ]

PHP, pasted on Dec 28:
1
2
3
4
5
6
7
<?php 
$target = mktime(0, 0, 0, 12, 28, 2013) ;
$today = time () ;
$difference =($target-$today) ;
$days =(int) ($difference/86400) ;
print "Holiday is in $days days";
?>


Output:
1
Holiday is in 0 days


Create a new paste based on this one


Comments: