Reputation: 38332
<?php $target = mktime(0, 0, 0, 10, 25, 2010) ; $today = time () ; $difference =($target-$today) ; echo $output = $difference/60 ; ?>
will the above code give time in seconds
Upvotes: 0
Views: 89
Reputation: 4648
No it will give in minutes :) remove the "/60";
Upvotes: 4