| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 520 lignes (14 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Horde_Date:: (23 méthodes):
Horde_Date()
timestamp()
datestamp()
isLeapYear()
firstDayOfWeek()
daysInMonth()
dayOfWeek()
dayOfYear()
weekOfYear()
weeksInYear()
setNthWeekday()
dump()
isValid()
correct()
compareDate()
compareTime()
compareDateTime()
tzOffset()
iso8601DateTime()
rfc2822DateTime()
rfc3339DateTime()
cTime()
strftime()
Classe: Horde_Date - X-Ref
Horde Date wrapper/logic class, including some calculation| Horde_Date($date = null) X-Ref |
| Build a new date object. If $date contains date parts, use them to initialize the object. |
| timestamp() X-Ref |
| Return the unix timestamp representation of this date. return: integer A unix timestamp. |
| datestamp() X-Ref |
| Return the unix timestamp representation of this date, 12:00am. return: integer A unix timestamp. |
| isLeapYear($year) X-Ref |
| firstDayOfWeek($week, $year) X-Ref |
| Returns the day of the year (1-366) that corresponds to the first day of the given week. param: integer $week The week of the year to find the first day of. param: integer $year The year to calculate for. return: integer The day of the year of the first day of the given week. |
| daysInMonth($month, $year) X-Ref |
| dayOfWeek() X-Ref |
| Return the day of the week (0 = Sunday, 6 = Saturday) of this object's date. return: integer The day of the week. |
| dayOfYear() X-Ref |
| Returns the day number of the year (0 to 365/366). return: integer The day of the year. |
| weekOfYear() X-Ref |
| Returns week of the year, first Monday is first day of first week. return: integer The week number. |
| weeksInYear($year) X-Ref |
| Return the number of weeks in the given year (52 or 53). param: integer $year The year to count the number of weeks in. return: integer $numWeeks The number of weeks in $year. |
| setNthWeekday($weekday, $nth = 1) X-Ref |
| Set the date of this object to the $nth weekday of $weekday. param: integer $weekday The day of the week (0 = Sunday, etc). param: integer $nth The $nth $weekday to set to (defaults to 1). |
| dump($prefix = '') X-Ref |
| Pas de description |
| isValid() X-Ref |
| Is the date currently represented by this object a valid date? return: boolean Validity, counting leap years, etc. |
| correct($mask = HORDE_DATE_MASK_ALLPARTS) X-Ref |
| Correct any over- or underflows in any of the date's members. param: integer $mask We may not want to correct some overflows. |
| compareDate($date) X-Ref |
| Compare this date to another date object to see which one is greater (later). Assumes that the dates are in the same timezone. param: mixed $date The date to compare to. return: integer == 0 if the dates are equal |
| compareTime($date) X-Ref |
| Compare this to another date object by time, to see which one is greater (later). Assumes that the dates are in the same timezone. param: mixed $date The date to compare to. return: integer == 0 if the dates are equal |
| compareDateTime($date) X-Ref |
| Compare this to another date object, including times, to see which one is greater (later). Assumes that the dates are in the same timezone. param: mixed $date The date to compare to. return: integer == 0 if the dates are equal |
| tzOffset($colon = true) X-Ref |
| Get the time offset for local time zone. param: boolean $colon Place a colon between hours and minutes? return: string Timezone offset as a string in the format +HH:MM. |
| iso8601DateTime() X-Ref |
| Format time in ISO-8601 format. return: string Date and time in ISO-8601 format. |
| rfc2822DateTime() X-Ref |
| Format time in RFC 2822 format. return: string Date and time in RFC 2822 format. |
| rfc3339DateTime() X-Ref |
| Format time in RFC 3339 format. return: string Date and time in RFC 3339 format. |
| cTime($time = false) X-Ref |
| Format time to standard 'ctime' format. return: string Date and time. |
| strftime($format) X-Ref |
| Format date and time using strftime() format. return: string strftime() formatted date and time. |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |