A note that might save some people some time:
This note on this page about DateTime object not being available unless you have PHP 5.2.0 or greater ONLY applies to SOME of the functions listed in the function list section of this manual.
The DateTime is a new OO-based approach to date manipulation, but the old methods such as strtotime() and date() have been there for ages and still get the job done.
To new users a "This not available until 5.2.0" note on the "Installation" page for this section seems to imply that ALL the functionality of this section is not available until 5.2.0.
Maybe we should put a note on each of the "new" functionality pages that says. "This is new as of 5.2.0, and effectively replaces X and Y legacy functions". Just a thought.
Installation
Für diese Funktionen ist keine Installation erforderlich, diese gehören zum Grundbestand von PHP.
Hinweis: Aktualisieren der Zeitzonen-Datenbank
Die jeweils aktuellste Version der Zeitzonen-Datenbank kann über das PECL-Paket » timezonedb installiert werden. Für Windows-Benutzer steht eine vorkompilierte DLL auf der PECL4Win-Website bereit: » php_timezonedb.dll.
Hinweis: Experimentelle DateTime-Unterstützung in PHP 5.1.x
Obwohl die Klasse DateTime (und damit zusammenhängende Funktionen) erst seit PHP 5.2.0 standardmäßig aktiviert sind, ist es möglich experimentellen Support hierfür bereits in PHP 5.1.x mit Hilfe des folgenden Flags vor configure/compile zu aktivieren: CFLAGS=-DEXPERIMENTAL_DATE_SUPPORT=1
Installation
21-Jul-2008 07:40
