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
There is no installation needed to use these functions; they are part of the PHP core.
Note: 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.
Note: 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
Installation
dave2008 at buchananville dot com
22-Jul-2008 02:40
22-Jul-2008 02:40
