Top Level :: Date and Time

Package Information: Date

Show All Changelogs
» Version » Information
1.5.0a1Download

Release date: 2008-03-23 22:58 UTC
Release state: alpha

Changelog:

* Fixed bug #2378: getDate(DATE_FORMAT_UNIXTIME) doesn't convert to GMT
* Fixed bug #7439: US/Indiana Daylight Savings Change
* Implemented request #9700: Incorrect timestamps allowd
* Fixed bug #10349: Wrong offset in timezones
* Fixed bug #10591: inDaylightTime fails
* Implemented request #11090: microtime is not set by default constructor
* Fixed bug #11313: DST time change not handled correctly
* Fixed bug #11475: Date::copy don't copy milisecond part
* Fixed bug #11682: Australia/Perth has DST
* Fixed bug #11708: getWeekdayAbbrname returns wrong lenght if string is unicode
* Fixed bug #12019: Date->after(...) changes the date
* Fixed bug #12420: Date constructor handles iso 8601 timezone offests of zero incorrectly
* Fixed bug #12529: setTZ globally sets your TZ instead of only within date object
* Fixed bug #13376: setFromDateDiff change source dates

* Improved time-zone functionality so that it is entirely handled by the class and not reliant on native functions
* Added leap-second functionality
* Added functions 'Date::round()' and 'Date::trunc()'
* Added formatting function 'Date::format2()' that uses a 'YYYY-MM-DD'-style formatting code
* Added formatting function 'Date::format3()' to allow date-formatting using the formatting code of 'date()'

Dependencies:
  • PHP Version: PHP 4.3 or newer
  • PEAR Package: PEAR Installer 1.4.0 or newer
  • PEAR Package: Numbers_Words 0.15.0 or newer (optional)
1.4.7Download

Release date: 2006-11-22 02:27 UTC
Release state: stable

Changelog:

* Fix bug #8912: putenv() causes crashes in DateTimeZone::inDaylightTime() under windows
* Fix bug #9409: Date_Calc, fatal error using a non-array variable as an array
* Fix bug #9414: Date::addSeconds() fails to work properly with negative numbers
* Many cosmetics update
* Moved bug test files to tests/bugs/
* Removed unused files

Dependencies:
  • PHP Version: PHP 4.3 or newer
  • PEAR Package: PEAR Installer 1.4.0 or newer
1.4.6Download

Release date: 2005-11-15 00:33 UTC
Release state: stable

Changelog:

- Change license from PHP License to new BSD License
- Bug #5715 fypo, missing s in $GLOBALS

Dependencies:
  • PHP Version: PHP 4.2 or newer
1.4.5Download

Release date: 2005-10-12 01:03 UTC
Release state: stable

Changelog:

Same code base as 1.4.4-beta
See 1.4.4 changelog for details

Dependencies:
  • PHP Version: PHP 4.2 or newer
1.4.4Download

Release date: 2005-10-02 15:22 UTC
Release state: beta

Changelog:

- Establish the DATE_CALC_FORMAT constant
and use it as the default value for each
of the Date_Calc class' method's $format
parameter.
- Add beginOfMonthBySpan() and
endOfMonthBySpan() methods to Date_Calc.
- Use integers for the parameters in
Date_Calc instead of strings.
- Tweak Date_Calc::NWeekdayOfMonth() so it
can calculate the 'last' given weekday of
a month.
- #1640. Make sure all longname's are also
keys in $GLOBALS['_DATE_TIMEZONE_DATA']. Makes
Date_TimeZone work under more operating systems.
- #5420, missing CEST
- #3846, getYear, getMonth returns integer
- #2652, add %h and %i support (rob at wildlime dot com
- #5494, force dot as decimal separator
- #3022, allow to specify the weekday abbrevation length used in ::format()
- #4878, %s padding fix when < 10 ( aashley at optimiser dot com)
- #3059, use GLOBALS in date_span

Dependencies:
  • PHP Version: PHP 4.2 or newer
1.4.3Download

Release date: 2004-05-16 13:17 UTC
Release state: stable

Changelog:

- Fix #1250 Wrond name for Bangladesh TZ
- Fix #1390, add XML Schema datetime support
(aashley at optimiser dot com)
See http://www.w3.org/TR/2004/PER-xmlschema-2-20040318/#dateTime

Dependencies:
  • PHP Version: PHP 4.2 or newer
1.4.2Download

Release date: 2004-03-14 15:38 UTC
Release state: stable

Changelog:

- Fix #976 TimeZone default bad global usage
only _DATE_TIMEZONE_DEFAULT is used now
- Fix #683, add optional length argumet to getDayName()
- Fix PHP5 problems with get_class functions

Dependencies:
  • PHP Version: PHP 4.2 or newer
1.4.1Download

Release date: 2004-02-24 16:07 UTC
Release state: stable

Changelog:

- Fix #674 endOfWeek() beginOfWeek()
- Fix #727, weeksInMonth (wrong result with some dates)
- Fix #674 (and old system #22549), check arguments in Date_Span

1.4Download

Release date: 2003-12-21 14:25 UTC
Release state: stable

Changelog:

- improvements in input date parsing
- add Date methods addSpan() and subtractSpan()
- added two more ISO8601 date/time output formats DATE_FORMAT_ISO_BASIC and DATE_FORMAT_ISO_EXTENDED
- improve Date_Calc isLeapYear() and daysInMonth() for year 1582
- add gregorianToISO() method to Date_Calc
- add dateSeason() method to Date_Calc
- add Date_Span class
- bugfix in Date_Calc when century ends in 00, only define DATE_CALC_BEGIN_WEEKDAY if not already defined
- bugfix in beginOfNextWeek(), beginOfPreviousWeek() (thx to andreas dot kossmeier at bergfex dot at)
- bugfix in nextDayOfWeek and prevDayOfWeek (thx to koan at gmx dot at)
- bugfix for bug 62: getDate(DATE_FORMAT_UNIXTIME) off because of DST
- bugfix for bug 65: format(e) returns zero-padded day
- bugfix for bug 195: Suppress a notice in setDate()
- bugfix for bug 271: Date_Calc weeksInMonth() returns wrong number
- fix abstraction bug, Date constructor accepts now object that extends Date
- add tests to release package
- Fix notices and mins calc in to toUTCbyOffset()

1.4rc1Download

Release date: 2003-12-03 21:30 UTC
Release state: beta

Changelog:

- improvements in input date parsing
- add Date methods addSpan() and subtractSpan()
- added two more ISO8601 date/time output formats DATE_FORMAT_ISO_BASIC and DATE_FORMAT_ISO_EXTENDED
- improve Date_Calc isLeapYear() and daysInMonth() for year 1582
- add gregorianToISO() method to Date_Calc
- add dateSeason() method to Date_Calc
- add Date_Span class
- bugfix in Date_Calc when century ends in 00, only define DATE_CALC_BEGIN_WEEKDAY if not already defined
- bugfix in beginOfNextWeek(), beginOfPreviousWeek() (thx to andreas dot kossmeier at bergfex dot at)
- bugfix in nextDayOfWeek and prevDayOfWeek (thx to koan at gmx dot at)
- bugfix for bug 62: getDate(DATE_FORMAT_UNIXTIME) off because of DST
- bugfix for bug 65: format(e) returns zero-padded day
- bugfix for bug 195: Suppress a notice in setDate()
- bugfix for bug 271: Date_Calc weeksInMonth() returns wrong number
- add tests to release package

1.3.1betaDownload

Release date: 2003-05-26 00:51 UTC
Release state: beta

Changelog:

- bugfix in beginOfNextWeek(), beginOfPreviousWeek() (thx to andreas dot kossmeier at bergfex dot at)
- bugfix in nextDayOfWeek and prevDayOfWeek (thx to koan at gmx dot at)

1.3Download

Release date: 2002-10-17 21:01 UTC
Release state: stable

Changelog:

- add %O and %o to Date::format(), outputs +/-HH:MM timezone information, enabling the creation of ISO 8601 date strings with format()
- bugfix in Date::copy() method
- bugfix for off-by-one errors in Date::format()'s %I, %P, %p and %r output
- bugfix for Date::setMinute() typo
- bugfix for Date::convertTZ() incorrectly converting some time zones
- bugfix in Date_Calc::NWeekdayOfMonth(), fixes bug #19334, dayOfWeek and dateFormat called with incorrect paramaters

1.2Download

Release date: 2002-08-06 21:01 UTC
Release state: stable

Changelog:

- The Date package now contains Calc and Human
- Date/Calc.php -> added compareDates() func
- Date.php -> modified format(), %p for am/pm, %P for AM/PM

1.1Download

Release date: 2002-05-13 05:54 UTC
Release state: stable

Changelog:

Made constructor smarter accepting various date formats for initialization. Added copy() method.

1.0Download

Release date: 2002-05-11 17:33 UTC
Release state: stable

Changelog:

First packaged release.