6.6. Miscellaneous Methods

Several other methods exist for special purpose tasks.

6.6.1. Fractional Seconds

Zend_Date supports several methods for working with time units smaller than seconds. By default, precision is set to track milliseconds, as seen using getFractionalPrecision(). To change the precision use setFractionalPrecision($precision).

6.6.2. Working with Timezones

In order for a date to be rendered in a localized manner, a timezone must be known first. The default timezone is always GMT/UTC. To examine an object's timezone use getTimeZone()). To change an object's timezone, use setTimeZone()).

6.6.3. Understanding daylight saving

coming soon...

6.6.4. public static now()

This convenience function is equivalent to new Zend_Date().

6.6.5. Leap Years

Use isLeapYear() to determine if the current object is a leap year, or use Zend_Date::checkLeapYear($year) to check $year, which can be a string, integer, or instance of Zend_Date.

6.6.6. Today, Tomorrow, Yesterday

Conveniently, Zend_Date provides the ability to check localized dates against the common tests for isToday(), isYesterday(), and isTomorrow().

6.6.7. What about the sun ?

coming soon...

6.6.7.1. getSunRise()

coming soon...

6.6.7.2. getSunSet()

coming soon...

6.6.7.3. getSunInfo()

coming soon...