Horde_DateLocated in /Date.php (line 54)
static array
$_corrections
= array(Map of required correction masks.
static string
$_defaultSpecs
= '%CdDeHImMnRStTyY' (line 146)
Default specs that are always supported.
static string
$_supportedSpecs
= '' (line 152)
Internally supported strftime() specifiers.
string
$_defaultFormat
= self::DATE_DEFAULT (line 140)
Default format for __toString()
mixed
$_formatCache
= array() (line 170)
integer
$_hour
= 0 (line 112)
Hour
integer
$_mday
(line 105)
Day
integer
$_min
= 0 (line 119)
Minute
integer
$_month
(line 98)
Month
integer
$_sec
= 0 (line 126)
Second
string
$_timezone
(line 133)
String representation of the date's timezone.
integer
$_year
(line 91)
Year
static fromDays (line 385)
Converts number of days since 24th November, 4714 B.C. (in the proleptic Gregorian calendar, which is year -4713 using 'Astronomical' year numbering) to Gregorian calendar date.
Returned date belongs to the proleptic Gregorian calendar, using 'Astronomical' year numbering.
The algorithm is valid for all years (positive and negative), and also for years preceding 4714 B.C. (i.e. for negative 'Julian Days'), and so the only limitation is platform-dependent (for 32-bit systems the maximum year would be something like about 1,465,190 A.D.).
N.B. Monday, 24th November, 4714 B.C. is Julian Day '0'.
Algorithm is from PEAR::Date_Calc
static weeksInYear (line 608)
Returns the number of weeks in the given year (52 or 53).
Constructor __construct (line 190)
Builds a new date object. If $date contains date parts, use them to initialize the object.
Recognized formats:
add (line 484)
Adds a number of seconds or units to this date, returning a new Date object.
after (line 686)
Returns whether this date is after the other.
before (line 698)
Returns whether this date is before the other.
compareDate (line 663)
Compares this date to another date object to see which one is greater (later). Assumes that the dates are in the same timezone.
compareDateTime (line 753)
Compares this to another date object, including times, to see which one is greater (later). Assumes that the dates are in the same timezone.
compareTime (line 726)
Compares this to another date object by time, to see which one is greater (later). Assumes that the dates are in the same timezone.
datestamp (line 809)
Returns the unix timestamp representation of this date, 12:00am.
dateString (line 823)
Formats date and time to be passed around as a short url parameter.
dayOfWeek (line 552)
Returns the day of the week (0 = Sunday, 6 = Saturday) of this date.
dayOfYear (line 576)
Returns the day number of the year (1 to 365/366).
diff (line 773)
Returns number of days between this date and another.
equals (line 710)
Returns whether this date is the same like the other.
format (line 866)
Formats time using the specifiers available in date() or in the DateTime class' format() method.
To format in languages other than English, use strftime() instead.
isValid (line 647)
Is the date currently represented by this object a valid date?
setDefaultFormat (line 542)
Sets the default date format used in __toString()
setNthWeekday (line 624)
Sets the date of this object to the $nth weekday of $weekday.
setTimezone (line 522)
Converts this object to a different timezone.
strftime (line 879)
Formats date and time using strftime() format.
sub (line 502)
Subtracts a number of seconds or units from this date, returning a new Horde_Date object.
timestamp (line 795)
Returns the unix timestamp representation of this date.
toDateTime (line 284)
Returns a DateTime object representing this object.
toDays (line 317)
Converts a date in the proleptic Gregorian calendar to the no of days since 24th November, 4714 B.C.
Returns the no of days since Monday, 24th November, 4714 B.C. in the proleptic Gregorian calendar (which is 24th November, -4713 using 'Astronomical' year numbering, and 1st January, 4713 B.C. in the proleptic Julian calendar). This is also the first day of the 'Julian Period' proposed by Joseph Scaliger in 1583, and the number of days since this date is known as the 'Julian Day'. (It is not directly to do with the Julian calendar, although this is where the name is derived from.)
The algorithm is valid for all years (positive and negative), and also for years preceding 4714 B.C.
Algorithm is from PEAR::Date_Calc
toiCalendar (line 846)
Formats date and time to the RFC 2445 iCalendar DATE-TIME format.
toJson (line 833)
Formats date and time to the ISO format used by JSON.
tzOffset (line 785)
Returns the time offset for local time zone.
weekOfMonth (line 586)
Returns the week of the month.
weekOfYear (line 596)
Returns the week of the year, first Monday is first day of first week.
_correct (line 947)
Corrects any over- or underflows in any of the date's members.
_correctMonth (line 1022)
Corrects the current month.
This cannot be done in _correct() because that would also trigger a correction of the day, which would result in an infinite loop.
_initializeFromArgs (line 1035)
Handles args in order: year month day hour min sec tz
_initializeFromArray (line 1048)
_initializeFromObject (line 1079)
_initializeTimezone (line 1104)
_strftime (line 893)
Formats date and time using a limited set of the strftime() format.
__get (line 425)
Getter for the date and time properties.
__isset (line 470)
Returns whether a date or time property exists.
__set (line 441)
Setter for the date and time properties.
__toString (line 270)
Returns a simple string representation of the date object
DATE_DEFAULT
= 'Y-m-d H:i:s'
(line 83)
DATE_FRIDAY
= 5
(line 61)
DATE_JSON
= 'Y-m-d\TH:i:s'
(line 84)
DATE_MONDAY
= 1
(line 57)
DATE_SATURDAY
= 6
(line 62)
DATE_SUNDAY
= 0
(line 56)
DATE_THURSDAY
= 4
(line 60)
DATE_TUESDAY
= 2
(line 58)
DATE_WEDNESDAY
= 3
(line 59)
MASK_ALLDAYS
= 127
(line 73)
MASK_ALLPARTS
= 63
(line 81)
MASK_DAY
= 8
(line 78)
MASK_FRIDAY
= 32
(line 69)
MASK_HOUR
= 4
(line 77)
MASK_MINUTE
= 2
(line 76)
MASK_MONDAY
= 2
(line 65)
MASK_MONTH
= 16
(line 79)
MASK_SATURDAY
= 64
(line 70)
MASK_SECOND
= 1
(line 75)
MASK_SUNDAY
= 1
(line 64)
MASK_THURSDAY
= 16
(line 68)
MASK_TUESDAY
= 4
(line 66)
MASK_WEDNESDAY
= 8
(line 67)
MASK_WEEKDAYS
= 62
(line 71)
MASK_WEEKEND
= 65
(line 72)
MASK_YEAR
= 32
(line 80)
Documentation generated on Sun, 13 May 2012 03:29:50 +0000 by phpDocumentor 1.4.3