Установка

Для использования этих функций не требуется проведение установки, поскольку они являются частью ядра PHP.

Замечание: Getting the latest timezone database The latest version of the timezone database can be installed via PECL's » timezonedb. For Windows users, a pre-compiled DLL can be downloaded from the PECL4Win site: » php_timezonedb.dll.

Замечание: Experimental DateTime support in PHP 5.1.x Although the DateTime class (and related functions) are enabled by default since PHP 5.2.0, it is possible to add experimental support into PHP 5.1.x by using the following flag before configure/compile: CFLAGS=-DEXPERIMENTAL_DATE_SUPPORT=1

Коментарии

Автор:
The statement "the DateTime class (and related functions) are enabled by default since PHP 5.2.0" is not entirely true.  For example, the DateInterval class did not become available until 5.3.0 and since the function DateTime::diff returns a DateInterval object, this function is not available in 5.2.0.
2011-03-25 04:21:39
http://php5.kiev.ua/manual/ru/datetime.installation.html

    Поддержать сайт на родительском проекте КГБ