Home » PHP » PHP_Compat » Bug #7139
PHP 5.1.1 Datetime Constants
Details
| Request #7139 | PHP 5.1.1 Datetime Constants |
|---|---|
| Submitted | 2006-03-17 05:13 UTC |
| From | rwaldock at gmail dot com |
| Assigned | arpad |
| Status | Closed |
| Package | PHP_Compat |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | 1.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