Новости | Документация | Download | Webboard | FAQ | Поиск | Контакты


DateTime::diff

(PHP 5 >= 5.3.0)

DateTime::diffReturns the difference between two DateTime objects

Описание

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

Returns the difference between two DateTime objects.

Список параметров

datetime

The date to compare to.

absolute

Whether to return absolute difference. Defaults to FALSE.

Возвращаемые значения

The difference between two dates.






  Copyright Apache.ru © 1999-2017, All Rights Reserved Разработка сайта: Inside.ru  
  РЕКЛАМА НА САЙТЕ: |