Logo Search packages:      
Sourcecode: zendframework version File versions  Download package

Zend_Date_DateObject::getUnixTimestamp (  ) [protected]

Returns this object's UNIX timestamp A timestamp greater then the integer range will be returned as string This function does not return the timestamp as object. Use copy() instead.

integer|string timestamp

Definition at line 101 of file DateObject.php.

Referenced by Zend_Date::_assign(), Zend_Date::_calculate(), Zend_Date::_parseIsoToDate(), Zend_Date::get(), Zend_Date::getTimestamp(), Zend_Date::isToday(), Zend_Date::isTomorrow(), Zend_Date::isYesterday(), and Zend_Date::toString().

        if ($this->_unixTimestamp === intval($this->_unixTimestamp)) {
            return (int) $this->_unixTimestamp;
        } else {
            return (string) $this->_unixTimestamp;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index