note 22272 added to function.date
| From: | matt at phparena dot net | Date: | Wed, 12 Jun 2002 16:58:08 +0000 |
| Subject: | note 22272 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31749@lists.php.net to get a copy of this message | ||
Heres just a little function that will display all the possible time differences
// Saves us printing the hours manually
for ($i = -11; $i <= 0; $i++) {
$td .= "<option";
if ($faq->data['time_difference'] == $i) {
$td .= " selected";
}
$td .= ">$i</option>";
}
for ($i = 1; $i <= 11; $i++) {
$td .= "<option";
if ($faq->data['time_difference'] == $i) {
$td .= " selected";
}
$td .= ">+$i</option>";
}
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+22272
http://master.php.net/manage/user-notes.php?action=delete+22272
http://master.php.net/manage/user-notes.php?action=reject+22272