DateInterval::createFromDateString ( string $time )
When the manual says "Uses the normal date parsers" it means that this function cannot take $time = ISO8601 strings like "P7D". If you want to use those, you must use the constructor.
DateInterval::createFromDateString
(PHP 5 >= 5.3.0)
DateInterval::createFromDateString — Sets up a DateInterval from the relative parts of the string
Beschreibung
Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string.
Parameter-Liste
- time
-
Date with relative parts.
Rückgabewerte
Returns new DateInterval instance if success.
DateInterval::createFromDateString
Anonymous
28-Sep-2009 07:02
28-Sep-2009 07:02
