The DateInterval class
(PHP 5 >= 5.3.0)
Einführung
Representation of date interval. A date interval stores either a fixed amount of time (in years, months, days, hours etc) or a relative time string in the format that DateTime's constructor supports.
Klassenbeschreibung
DateInterval
{
/* Eigenschaften */
/* Methoden */
}Eigenschaften
- y
-
Number of years.
- m
-
Number of months.
- d
-
Number of days.
- h
-
Number of hours.
- i
-
Number of minutes.
- s
-
Number of seconds.
- invert
-
Is 1 if the interval is inverted and 0 otherwise. See DateInterval::format().
- days
-
Total number of days between the starting and ending dates in a DateTime::diff() calculation. days will be FALSE in other circumstances.
Inhaltsverzeichnis
- DateInterval::__construct — Creates new DateInterval object
- DateInterval::createFromDateString — Sets up a DateInterval from the relative parts of the string
- DateInterval::format — Formats the interval
DateInterval
There are no user contributed notes for this page.