note 85936 added to function.date
| From: | Landito at osu1 dot php dot net | Date: | Thu, 25 Sep 2008 11:44:03 +0000 |
| Subject: | note 85936 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144697@lists.php.net to get a copy of this message | ||
Changing the Timezones.
Europe/Germany to USA/East and change it back
I needed the actual time of NY. ;)
<?PHP
putenv("TZ=EST5EDT");
$date = date("Ymd-H:i:s");
putenv("TZ=MEZ-1MESZ");
?>
----
Server IP: 212.124.37.9
Probable Submitter: 81.20.112.43
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/85936
Del: integrated -- https://master.php.net/note/delete/85936/integrated
Del: useless -- https://master.php.net/note/delete/85936/useless
Del: bad code -- https://master.php.net/note/delete/85936/bad+code
Del: spam -- https://master.php.net/note/delete/85936/spam
Del: non-english -- https://master.php.net/note/delete/85936/non-english
Del: in docs -- https://master.php.net/note/delete/85936/in+docs
Del: other reasons-- https://master.php.net/note/delete/85936
Reject -- https://master.php.net/note/reject/85936
Search -- https://master.php.net/manage/user-notes.php