[Date] element index

Package indexes

All elements
a b c d e f g h i j l m n o p q s t w y _
_
top
Method __clone
Returns a copy of the object (workarround for PHP5 forward compatibility).
a
top
Method add
Date_Span::add() in Span.php
Adds a time span.
Method addSeconds
Date::addSeconds() in Date.php
Adds a given number of seconds to the date
Method addSpan
Date::addSpan() in Date.php
Adds a time span to the date
Method after
Date::after() in Date.php
Test if this date/time is after a certian date/time
b
top
Method before
Date::before() in Date.php
Test if this date/time is before a certain date/time
Method beginOfMonth
Return date of first day of month of given date.
Method beginOfNextMonth
Returns date of begin of next month of given date.
Method beginOfNextWeek
Find the month day of the beginning of week after given date, using DATE_CALC_BEGIN_WEEKDAY. (can return weekday of prev month.)
Method beginOfPrevMonth
Returns date of the first day of previous month of given date.
Method beginOfPrevWeek
Find the month day of the beginning of week before given date, using DATE_CALC_BEGIN_WEEKDAY. (can return weekday of prev month.)
Method beginOfWeek
Find the month day of the beginning of week for given date, using DATE_CALC_BEGIN_WEEKDAY. (can return weekday of prev month.)
c
top
Method compare
Date::compare() in Date.php
Compares two dates
Method compare
Compares two time spans.
Method compareDates
Compares two dates
Method convertTZ
Date::convertTZ() in Date.php
Converts this date to a new time zone
Method convertTZbyID
Converts this date to a new time zone, given a valid time zone ID
Method copy
Date_Span::copy() in Span.php
Set the time span from another time object.
Method copy
Date::copy() in Date.php
Copy values from another Date object
Page Calc.php
Calc.php in Calc.php
Page Calc.php
Calc.php in Calc.php
d
top
Variable $day
Date_Span::$day in Span.php
Variable $day
Date::$day in Date.php
the day
Variable $default
Date_TimeZone::$default in TimeZone.php
System Default Time Zone
Variable $dstlongname
DST Long Name of this time zone
Variable $dstshortname
DST Short Name of this timezone
Class Date
Date in Date.php
Generic date handling class for PEAR.
Method Date
Date::Date() in Date.php
Constructor
Method dateDiff
Returns number of days between two given dates.
Method dateFormat
Formats the date in the given format, much like strfmt(). This function is used to alleviate the problem with 32-bit numbers for dates pre 1970 or post 2038, as strfmt() has on most systems.
Method dateNow
Returns the current local date. NOTE: This function retrieves the local date using strftime(), which may or may not be 32-bit safe on your system.
Method dateSeason
Determines julian date of the given season Adapted from previous work in Java by James Mark Hamilton, mhamilton@qwest.net
Method dateToDays
Converts a date to number of days since a distant unspecified epoch.
Class Date_Calc
Date_Calc in Calc.php
Date_Calc is a calendar class used to calculate and
Constant DATE_CALC_BEGIN_WEEKDAY
Constant DATE_FORMAT_ISO
DATE_FORMAT_ISO in Date.php
"YYYY-MM-DD HH:MM:SS"
Constant DATE_FORMAT_ISO_BASIC
"YYYYMMSSTHHMMSS(Z|(+/-)HHMM)?"
Constant DATE_FORMAT_ISO_EXTENDED
"YYYY-MM-SSTHH:MM:SS(Z|(+/-)HH:MM)?"
Constant DATE_FORMAT_ISO_EXTENDED_MICROTIME
"YYYY-MM-SSTHH:MM:SS(.S*)?(Z|(+/-)HH:MM)?"
Constant DATE_FORMAT_TIMESTAMP
"YYYYMMDDHHMMSS"
Constant DATE_FORMAT_UNIXTIME
long int, seconds since the unix epoch
Class Date_Human
Date_Human in Human.php
Class to convert date strings between Gregorian and Human calendar formats.
Method Date_Span
Constructor.
Class Date_Span
Date_Span in Span.php
Generic time span handling class for PEAR.
Constant DATE_SPAN_INPUT_FORMAT_NNSV
Non Numeric Separated Values (NNSV) Input Format.
Method Date_TimeZone
Constructor
Class Date_TimeZone
Date_TimeZone in TimeZone.php
TimeZone representation class, along with time zone information data.
Method dayOfWeek
Returns day of week for given date, 0=Sunday
Method daysInMonth
Find the number of days in the given month.
Method daysToDate
Converts number of days to a distant unspecified epoch.
Method defaultCentury
Sets century for 2 digit year.
Page Date.php
Date.php in Date.php
Page Date.php
Date.php in Date.php
e
top
Method endOfNextMonth
Returns date of the last day of next month of given date.
Method endOfPrevMonth
Returns date of the last day of previous month for given date.
Method endOfWeek
Find the month day of the end of week for given date, using DATE_CALC_BEGIN_WEEKDAY. (can return weekday of following month.)
Method equal
Date_Span::equal() in Span.php
Tells if time span is equal to $time.
Method equals
Date::equals() in Date.php
Test if this date/time is exactly equal to a certian date/time
f
top
Method firstOfMonthWeekday
Find the day of the week for the first of the month of given date.
Method format
Time span pretty printing (similar to Date::format()).
Method format
Date::format() in Date.php
Date pretty printing, similar to strftime()
g
top
Method getAvailableIDs
Returns the list of valid time zone id strings
Method getCalendarMonth
Return a set of arrays to construct a calendar month for the given date.
Method getCalendarWeek
Return an array with days in week
Method getCalendarYear
Return a set of arrays to construct a calendar year for the given date.
Method getDate
Date::getDate() in Date.php
Get a string (or other) representation of this date
Method getDay
Date::getDay() in Date.php
Returns the day field of the date object
Method getDay
Returns the current local day in format DD
Method getDayName
Date::getDayName() in Date.php
Gets the full name or abbriviated name of this weekday
Method getDayOfWeek
Gets the day of the week for this date
Method getDaysInMonth
Gets number of days in the month for this date
Method getDefault
Return a TimeZone object representing the system default time zone
Method getDefaultFormat
Get the default format.
Method getDefaultInputFormat
Get the default input format.
Method getDSTLongName
Returns the DST long name for this time zone
Method getDSTSavings
Get the DST offset for this time zone
Method getDSTShortName
Returns the DST short name for this time zone
Method getHour
Date::getHour() in Date.php
Returns the hour field of the date object
Method getID
Date_TimeZone::getID() in TimeZone.php
Returns the id for this time zone
Method getJulianDate
Get the Julian date for this date
Method getLongName
Returns the long name for this time zone
Method getMinute
Date::getMinute() in Date.php
Returns the minute field of the date object
Method getMonth
Returns the current local month in format MM
Method getMonth
Date::getMonth() in Date.php
Returns the month field of the date object
Method getMonthAbbrname
Returns the abbreviated month name for the given month
Method getMonthFromFullName
Returns the numeric month from the month name or an abreviation
Method getMonthFullname
Returns the full month name for the given month
Method getMonthName
Gets the full name or abbriviated name of this month
Method getMonthNames
Returns an array of month names
Method getNextDay
Date::getNextDay() in Date.php
Get a Date object for the day after this one
Method getNextWeekday
Get a Date object for the weekday after this one
Method getOffset
Get the DST-corrected offset to UTC for the given date
Method getPrevDay
Date::getPrevDay() in Date.php
Get a Date object for the day before this one
Method getPrevWeekday
Get a Date object for the weekday before this one
Method getQuarterOfYear
Gets the quarter of the year for this date
Method getRawOffset
Returns the raw (non-DST-corrected) offset from UTC/GMT for this time zone
Method getSecond
Date::getSecond() in Date.php
Returns the second field of the date object
Method getShortName
Returns the short name for this time zone
Method getTime
Date::getTime() in Date.php
Get this date/time in Unix time() format
Method getWeekdayAbbrname
Returns the abbreviated weekday name for the given date
Method getWeekdayFullname
Returns the full weekday name for the given date
Method getWeekDays
Returns an array of week days
Method getWeekOfYear
Gets the week of the year for this date
Method getWeeksInMonth
Gets the number of weeks in the month for this date
Method getYear
Date::getYear() in Date.php
Returns the year field of the date object
Method getYear
Returns the current local year in format CCYY
Method greater
Tells if this time span is greater than $time.
Method greaterEqual
Tells if this time span is greater or equal than $time.
Method gregorianToHuman
Returns an associative array containing the converted date information in 'Human Calendar' format.
Method gregorianToISO
Converts from Gregorian Year-Month-Day to ISO YearNumber-WeekNumber-WeekDay
h
top
Variable $hasdst
Date_TimeZone::$hasdst in TimeZone.php
true if this time zone observes daylight savings time
Variable $hour
Date_Span::$hour in Span.php
Variable $hour
Date::$hour in Date.php
the hour
Method hasDaylightTime
Returns true if this zone observes daylight savings time
Method HumanToGregorian
Returns unix timestamp for a given Human Calendar date
Page Human.php
Human.php in Human.php
Page Human.php
Human.php in Human.php
i
top
Variable $id
Date_TimeZone::$id in TimeZone.php
Time Zone ID of this time zone
Method inDaylightTime
Tests if this date/time is in DST
Method inDaylightTime
Is the given date/time in DST for this time zone
Method isEmpty
Tells if the time span is empty (zero length).
Method isEqual
Date_TimeZone::isEqual() in TimeZone.php
Is this time zone equal to another
Method isEquivalent
Is this time zone equivalent to another
Method isFuture
Date::isFuture() in Date.php
Determine if this date is in the future
Method isFutureDate
Determines if given date is a future date from now.
Method isLeapYear
Date::isLeapYear() in Date.php
Determine if the year in this date is a leap year
Method isLeapYear
Returns true for a leap year, else false
Method isPast
Date::isPast() in Date.php
Determine if this date is in the past
Method isPastDate
Determines if given date is a past date from now.
Method isValidDate
Returns true for valid date, false for invalid date.
Method isValidID
Tests if given id is represented in the $_DATE_TIMEZONE_DATA time zone data
j
top
Method julianDate
Returns number of days since 31 December of year before given date.
l
top
Variable $longname
Date_TimeZone::$longname in TimeZone.php
Long Name of this time zone (ie Central Standard Time)
Method lower
Date_Span::lower() in Span.php
Tells if this time span is lower than $time.
Method lowerEqual
Tells if this time span is lower or equal than $time.
m
top
Variable $minute
Date::$minute in Date.php
the minute
Variable $minute
Date_Span::$minute in Span.php
Variable $month
Date::$month in Date.php
the month
n
top
Method nextDay
Returns date of day after given date.
Method nextDayOfWeek
Returns date of the next specific day of the week from the given date.
Method nextDayOfWeekOnOrAfter
Returns date of the next specific day of the week on or after the given date.
Method nextWeekday
Returns date of the next weekday of given date, skipping from Friday to Monday.
Method NWeekdayOfMonth
Calculates the date of the Nth weekday of the month, such as the second Saturday of January 2000.
o
top
Variable $offset
Date_TimeZone::$offset in TimeZone.php
offset, in milliseconds, of this timezone
p
top
Variable $partsecond
Date::$partsecond in Date.php
the parts of a second
Method prevDay
Returns date of day before given date.
Method prevDayOfWeek
Returns date of the previous specific day of the week from the given date.
Method prevDayOfWeekOnOrBefore
Returns date of the previous specific day of the week on or before the given date.
Method prevWeekday
Returns date of the previous weekday, skipping from Monday to Friday.
q
top
Method quarterOfYear
Returns quarter of the year for given date
s
top
Variable $second
Date::$second in Date.php
the second
Variable $second
Date_Span::$second in Span.php
Variable $shortname
Short Name of this time zone (ie CST)
Page Span.php
Span.php in Span.php
Page Span.php
Span.php in Span.php
Method set
Date_Span::set() in Span.php
Set the time span to a new value in a 'smart' way.
Method setDate
Date::setDate() in Date.php
Set the fields of a Date object based on the input date and format
Method setDay
Date::setDay() in Date.php
Set the day field of the date object
Method setDefault
Sets the system default time zone to the time zone in $id
Method setDefaultFormat
Set the default format.
Method setDefaultInputFormat
Set the default input format.
Method setFromArray
Set the time span from an array.
Method setFromDateDiff
Set the span from the elapsed time between two dates.
Method setFromDays
Set the time span from a total number of days.
Method setFromHours
Set the time span from a total number of hours.
Method setFromMinutes
Set the time span from a total number of minutes.
Method setFromSeconds
Set the time span from a total number of seconds.
Method setFromString
Set the time span from a string based on an input format.
Method setHour
Date::setHour() in Date.php
Set the hour field of the date object
Method setMinute
Date::setMinute() in Date.php
Set the minute field of the date object
Method setMonth
Date::setMonth() in Date.php
Set the month field of the date object
Method setSecond
Date::setSecond() in Date.php
Set the second field of the date object
Method setTZ
Date::setTZ() in Date.php
Sets the time zone of this Date
Method setTZbyID
Date::setTZbyID() in Date.php
Sets the time zone of this date with the given time zone id
Method setYear
Date::setYear() in Date.php
Set the year field of the date object
Method subtract
Subtracts a time span.
Method subtractSeconds
Subtracts a given number of seconds from the date
Method subtractSpan
Subtracts a time span to the date
t
top
Variable $tz
Date::$tz in Date.php
timezone for this date
Page TimeZone.php
TimeZone.php in TimeZone.php
Page TimeZone.php
TimeZone.php in TimeZone.php
Method toDays
Convert time span to days.
Method toHours
Convert time span to hours.
Method toMinutes
Convert time span to minutes.
Method toSeconds
Convert time span to seconds.
Method toUTC
Date::toUTC() in Date.php
Converts this date to UTC and sets this date's timezone to UTC
Method toUTCbyOffset
w
top
Method weekOfYear
Returns week of the year, first Sunday is first day of first week
Method weeksInMonth
Returns the number of rows on a calendar month. Useful for determining the number of rows when displaying a typical month calendar.
y
top
Variable $year
Date::$year in Date.php
the year
a b c d e f g h i j l m n o p q s t w y _