PYTHON DateInterval::createFromDateString

(0)
Python replacement for PHP's DateInterval::createFromDateString [ edit ]



Do you know a Python replacement for PHP's DateInterval::createFromDateString ? Write it!

PHP DateInterval::createFromDateString

PHP original manual for DateInterval::createFromDateString [ show | php.net ]

DateInterval::createFromDateString

(PHP 5 >= 5.3.0)

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

time

Date with relative parts.

Return Values

Returns new DateInterval instance if success.