Date/DateObject.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Date  
Version
$Id$  

\Zend_Date_DateObject

Package: Zend_Date\Zend_Date_DateObject
Children
\Zend_Date
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Methods

methodpublicgetGmtOffset() : integer

Return the offset to GMT of $this object's timezone.

The offset to GMT is initially set when the object is instantiated using the currently, in effect, default timezone for PHP functions.
Returns
TypeDescription
integerseconds difference between GMT timezone and timezone when object was instantiated
methodpublicgetTimezone() : string

Return the timezone of $this object.

The timezone is initially set when the object is instantiated.
Returns
TypeDescription
stringactual set timezone string
methodpublicsetTimezone(string $zone = null) : \Zend_Date_DateObject

Sets a new timezone for calculation of $this object's gmt offset.

For a list of supported timezones look here: http://php.net/timezones If no timezone can be detected or the given timezone is wrong UTC will be set.
Parameters
NameTypeDescription
$zonestring

OPTIONAL timezone for date calculation; defaults to date_default_timezone_get()

Returns
TypeDescription
\Zend_Date_DateObjectProvides fluent interface
Throws
ExceptionDescription
\Zend_Date_Exception
Documentation was generated by phpDocumentor 2.2.0 .