API16:JDate/setTimezone
From Joomla! Documentation
Description
Method to wrap the setTimezone() function and set the internal time zone object.
<! removed transcluded page call, red link never existed >
Syntax
setTimezone(DateTimeZone $tz)
| Parameter Name | Default Value | Description |
|---|---|---|
| The new DateTimeZone object. |
Returns
object The old DateTimeZone object.
Defined in
libraries/joomla/utilities/date.php
Importing
jimport( 'joomla.utilities.date' );
Source Body
public function setTimezone(DateTimeZone $tz)
{
$this->_tz = $tz;
return parent::setTimezone($tz);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples