isLeapYear()
isLeapYear(integer $year) : boolean
Returns whether a year is a leap year.
Parameters
integer | $year | The year. |
Returns
boolean —True if the year is a leap year.
Horde Date wrapper/logic class, including some calculation functions.
firstDayOfWeek(integer $week, integer $year) : \Horde_Date
Returns the date of the year that corresponds to the first day of the given week.
integer | $week | The week of the year to find the first day of. |
integer | $year | The year to calculate for. |
The date of the first day of the given week.
relativeDateTime(mixed $time, string $date_format = '%x', string $time_format = '%X') : string
Returns a relative, natural language representation of a timestamp
mixed | $time | The time. Any format accepted by Horde_Date. |
string | $date_format | Format to display date if timestamp is more then 1 day old. |
string | $time_format | Format to display time if timestamp is 1 day old. |
The relative time (i.e. 2 minutes ago)