note 48885 deleted from function.time by aidan
| From: | aidan@php.net | Date: | Sat, 08 Oct 2005 01:04:09 +0000 |
| Subject: | note 48885 deleted from function.time by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96616@lists.php.net to get a copy of this message | ||
Note Submitter: dan at skyinternet dot co dot uk
----
Another countdown script:
<?php
// This script is copyright 2004 - Dan <dan@skyinternet.co.uk>
// All rights reserved.
// Do NOT remove this Copyright notice.
$then = mktime(0, 0, 0, 9, 3, 2004);
$now = time();
$until = $then - $now;
$month = date('n', $until);
$day = date('j', $until);
$hour = date('g', $until);
$minute = date('i', $until);
$second = date('s', $until);
echo '<p>There are ' . $month . ' months, ' . $day . ' days, '
. $hour . ' hours, ' . $minute . ' minutes, and ' . $second . ' seconds
until event!</p>';
?>
Regards,