note 108379 added to timezones.asia
| From: | enil1000atgmaildotcom | Date: | Fri, 20 Apr 2012 18:49:15 +0000 |
| Subject: | note 108379 added to timezones.asia | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187266@lists.php.net to get a copy of this message | ||
You can have time zone set for India as 'Asia/Kolkata' this will add +5.30 to GMT time.
You will get proper time of your time zone.
Example:
<?php
$timezone = "Asia/Calcutta";
if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone);
echo date('d-m-Y H:i:s');
?>
You will get result as India time
----
Server IP: 69.147.83.197
Probable Submitter: 14.97.227.224
----
Manual Page -- http://www.php.net/manual/en/timezones.asia.php
Edit -- https://master.php.net/note/edit/108379
Del: integrated -- https://master.php.net/note/delete/108379/integrated
Del: useless -- https://master.php.net/note/delete/108379/useless
Del: bad code -- https://master.php.net/note/delete/108379/bad+code
Del: spam -- https://master.php.net/note/delete/108379/spam
Del: non-english -- https://master.php.net/note/delete/108379/non-english
Del: in docs -- https://master.php.net/note/delete/108379/in+docs
Del: other reasons-- https://master.php.net/note/delete/108379
Reject -- https://master.php.net/note/reject/108379
Search -- https://master.php.net/manage/user-notes.php