DateInterval::createFromDateStringSets up a DateInterval from the relative parts of the string Description
public static DateInterval DateInterval::createFromDateString
( string
$time
)Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string. Parameters
Examples
Example #1 Parsing valid date intervals
<?php Return ValuesReturns a new DateInterval instance. |