note 84270 rejected from function.date-offset-get by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 02:34:44 +0000 |
| Subject: | note 84270 rejected from function.date-offset-get by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141969@lists.php.net to get a copy of this message | ||
Note Submitter: divya at thyminfo dot com
----
This function is not supported on many of the Php versions so please check this function by an
example mine is php5.2.5 version.
here is the example i tried:
if(function_exists('getOffset'))
{
$dateSrc = '2007-04-19 12:50 GMT';
$dateTime = new DateTime($dateSrc);
$retval = $dateTime->getOffset();
echo "Returned value is $retval";
}
else{ echo "This function is not supported by ur phpversion";
}
if we are suppose to change the settings for using this function please let me know.