PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Date and Time » Date » Bug #8783

support for years <0001

Details

Request #8783support for years <0001
Submitted2006-09-25 12:32 UTC
Fromlorbas at planet-interkom dot de
StatusSuspended
PackageDate
PHP Version5.1.0
OSwinxp
Roadmaps(Not assigned)

Comments

[2006-09-25 12:32 UTC] lorbas at planet-interkom dot de

Description:
------------
sorry, but i can't understand why are not supported years <0001 - function getYear() returns 0 for years "before our epoch" and the instance of Date is empty, so Date is supporting only partial the ISO 8601 standard.

it would be a usefully solution when Date would supported years like e.g −0097-01-01.

I think what users earlier are needing years from the realy past when years in a unsurley future like 9998 :-)

thanx for Your understanding!

Lorbas