BlueSpice MediaWiki master
|
Public Member Functions | |
__construct ($interval_spec) | |
format ($format) | |
Static Public Member Functions | |
static | createFromDateString ($time) |
Public Attributes | |
$y | |
$m | |
$d | |
$h | |
$i | |
$s | |
$invert | |
$days | |
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. http://php.net/manual/en/class.dateinterval.php
DateInterval::__construct | ( | $interval_spec | ) |
string | $interval_spec | when the interval_spec cannot be parsed as an interval. |
|
static |
Sets up a DateInterval from the relative parts of the string
string | $time |
DateInterval::format | ( | $format | ) |
Formats the interval
$format |