_toToken example

if ($locale === null) {
            $locale = $this->getLocale();
        }

        if ($format === null) {
            $format = Zend_Locale_Format::getDateFormat($locale) . ' ' . Zend_Locale_Format::getTimeFormat($locale);
        } else if (((self::$_options['format_type'] == 'php') && ($type === null)) or ($type == 'php')) {
            $format = Zend_Locale_Format::convertPhpToIsoFormat($format);
        }

        return $this->date($this->_toToken($format$locale)$this->getUnixTimestamp(), false);
    }

    /** * Returns a string representation of the date which is equal with the timestamp * * @return string */
    public function __toString()
    {
        return $this->toString(null, $this->_locale);
    }

    
Home | Imprint | This part of the site doesn't use cookies.