PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » PHP_Compat » Bug #7139

PHP 5.1.1 Datetime Constants

Details

Request #7139PHP 5.1.1 Datetime Constants
Submitted2006-03-17 05:13 UTC
Fromrwaldock at gmail dot com
Assignedarpad
StatusClosed
PackagePHP_Compat
PHP VersionIrrelevant
OSIrrelevant
Roadmaps1.6.0a1

Comments

[2006-03-17 05:13 UTC] rwaldock at gmail dot com

Description:
------------
PHP 5.1.1 offers new constants for several standard date representations that are very handy.

Convenience link: http://php.net/manual/en/ref.datetime.php#datetime.constants

I've retrofitted my local install of PHP_Compat with a constants/DATE.php file that emulates these new constants. Since it has been helpful to me, I'd like to offer it up for inclusion in future PHP_COMPAT packages, if you are interested.

Test script:
---------------
Since the code is longer than 20 lines, I uploaded a PHPS file for your review: http://clients.clearsiteinternet.com/PHP_Compat_Date/DATE.phps

Expected result:
----------------
The new datetime constants will be available to versions of PHP earlier than 5.1.1