note 48885 added to function.time
| From: | dan at skyinternet dot co dot uk | Date: | Tue, 11 Jan 2005 02:02:48 +0000 |
| Subject: | note 48885 added to function.time | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83058@lists.php.net to get a copy of this message | ||
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,
----
Manual Page -- http://www.php.net/manual/en/function.time.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48885
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48885&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48885&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48885&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48885&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48885&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48885&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48885&report=yes
Search -- http://master.php.net/manage/user-notes.php