note 16425 added to function.mktime
| From: | webmaster at kmbui dot net | Date: | Tue, 30 Oct 2001 01:26:25 +0000 |
| Subject: | note 16425 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19588@lists.php.net to get a copy of this message | ||
in order to get user local time.
eq. web server placed in london and user is in Indonesia.
$today = getdate(mktime(date("H")+7));
$DAY = $today['mday'];
$MONTH = $today['month'];
$year = $today['year'];
$HOUR = $today['hours'];
this is usefull when you need to store that value in database
--
http://www.php.net/manual/en/function.mktime.php
http://master.php.net/manage/user-notes.php?action=edit+16425
http://master.php.net/manage/user-notes.php?action=delete+16425
http://master.php.net/manage/user-notes.php?action=reject+16425