Horde Date wrapper/logic class, including some calculation functions.
$Horde: framework/Date/Date.php,v 1.8.10.21 2010-10-19 20:20:13 jan Exp $
Located in /Date/Date.php (line 38)
Return the number of weeks in the given year (52 or 53).
mktime() implementation that supports dates outside of 1970-2038, from http://phplens.com/phpeverywhere/adodb_date_library.
Build a new date object. If $date contains date parts, use them to initialize the object.
Recognized formats:
Compare this date to another date object to see which one is greater (later). Assumes that the dates are in the same timezone.
Compare this to another date object, including times, to see which one is greater (later). Assumes that the dates are in the same timezone.
Compare this to another date object by time, to see which one is greater (later). Assumes that the dates are in the same timezone.
Correct any over- or underflows in any of the date's members.
Format time to standard 'ctime' format.
Return the unix timestamp representation of this date, 12:00am.
Return the day of the week (0 = Sunday, 6 = Saturday) of this object's date.
Returns the day number of the year (1 to 365/366).
Returns the day of the year (1-366) that corresponds to the first day of the given week.
TODO: with PHP 5.1+, see http://derickrethans.nl/calculating_start_and_end_dates_of_a_week.php
Format time using the specifiers available in date() or in the DateTime class' format() method.
Format time in ISO-8601 format. Works correctly since Horde 3.2.
Is the date currently represented by this object a valid date?
Format time in RFC 2822 format.
Format time in RFC 3339 format.
Set the date of this object to the $nth weekday of $weekday.
Format time in the format we use for SQL queries.
Format date and time using strftime() format.
Return the unix timestamp representation of this date.
Get the time offset for local time zone.
Returns the week of the month.
Returns the week of the year, first Monday is first day of first week.
Sets the current timezone, if available.
Format date and time using a limited set of the strftime() format.
Documentation generated on Sun, 30 Jan 2011 05:16:38 +0000 by phpDocumentor 1.4.3