PYTHON DateTime::diff

(0)
Python replacement for PHP's DateTime::diff [ edit ]



Do you know a Python replacement for PHP's DateTime::diff ? Write it!

PHP DateTime::diff

PHP original manual for DateTime::diff [ show | php.net ]

DateTime::diff

(PHP 5 >= 5.3.0)

DateTime::diffReturns the difference between two DateTime objects

Description

public DateInterval DateTime::diff ( DateTime $datetime [, bool $absolute ] )

Returns the difference between two DateTime objects.

Parameters

datetime

The date to compare to.

absolute

Whether to return absolute difference. Defaults to FALSE.

Return Values

The difference between two dates.