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 » Date and Time » Date

Generic date/time handling class for PEAR

This package is unmaintained.

Download latest release 1.5.0a4 (archived versions might be outdated)

License: BSD License

Description

Generic classes for representation and manipulation of
dates, times and time zones without the need of timestamps,
which is a huge limitation for PHP programs. Includes time zone data,
time zone conversions and many date/time conversions.
It does not rely on 32-bit system date stamps, so
you can display calendars and compare dates that date
pre 1970 and post 2038.

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#62ClosedBug2003-10-05Date::getDate(DATE_FORMAT_UNIXTIME) off because of DST
#65ClosedBug2003-10-05Date::format("%e") returns zero-padded day
#160ClosedBug2003-10-27Date-1.3.1beta.tgz missing file Span.php
#195ClosedBug2003-11-04suppress a NOTICE in Date.php
#271ClosedBug2003-11-18Date_Calc::weeksInMonth() returns wrong number
#309BogusBug2003-11-27Undefined object error in getDate()
#335ClosedBug2003-12-01Date::addSeconds() adds hours instead of seconds
#353ClosedBug2003-12-04Date_Calc::beginOfNextWeek does not keep formatting
#354ClosedBug2003-12-04No support for microseconds in dates
#434DuplicateBug2003-12-16TimeZone.php function inDaylightTime fails
#445ClosedBug2003-12-17Date does not handle DATE_FORMAT_ISO_EXTENDED correctly
#469ClosedBug2003-12-20weekOf Year - wrong default arguments
#470BogusBug2003-12-20weekOfYear - wrong result
#674ClosedBug2004-02-03strange (wrong?) result of Date_Calc::endOfWeek
#677ClosedBug2004-02-03so new methods
#683ClosedBug2004-02-05add new parameter
#684ClosedBug2004-02-05Class check
#685SuspendedReq2004-02-05some speed improvement
#686Wont fixBug2004-02-05Factory
#689Wont fixBug2004-02-05Other way to write it
#727ClosedBug2004-02-10Date_Calc::weeksInMonth() wrong result
#861ClosedBug2004-02-26PEAR QA: improvement for get_class()-usage
#967ClosedBug2004-03-07Date_TimeZone uses a bad global variable
#969ClosedBug2004-03-08Dates created from a string don't set properties correctly
#1103No FeedbackBug2004-03-31Inline documentation error
#1104BogusBug2004-03-31getDay() type cast not needed
#1107No FeedbackBug2004-03-31setHour() returns wrong value
#1180Wont fixBug2004-04-11Use of Date::inDaylightTime() switches date("r") from BST to GMT
#1189BogusBug2004-04-12date('T') in the UK during summer-time gives 'BST'
#1190ClosedBug2004-04-12Date_TimeZone _DATE_TIMEZONE_DATA[] has UTC double-defined
#1236No FeedbackBug2004-04-18bad regexp avoid format date
#1240SuspendedBug2004-04-19Integer overflow when constructing Date_Span from two Date objects
#1250ClosedBug2004-04-21Date/TimeZone definition has a typo error
#1390ClosedBug2004-05-12Support for ISO Date format part seconds
#1421SuspendedBug2004-05-17Loading file takes time
#1612No FeedbackBug2004-06-11strange error on time format
#1640ClosedBug2004-06-14Date_TimeZone doesn't recognize 'EDT'
#1695BogusBug2004-06-21wrong time initialization for pseudo-null parameters
#1928BogusBug2004-07-20No show
#2172BogusBug2004-08-20Inconsistent start of week in package
#2217BogusBug2004-08-25Date::compare is changin php date result
#2272ClosedReq2004-09-02Files missing "@package" phpDocumentor tags
#2338SuspendedBug2004-09-15Comparison of dates changes the time zone
#2344No FeedbackBug2004-09-15Extensive use of after() and before() methods crashes PHP/Apache
#2378OpenBug2004-09-23getDate(DATE_FORMAT_UNIXTIME) doesn't convert to GMT
#2401Wont fixReq2004-09-26In Date::setDate(), $date should have seconds be optional
#2652ClosedReq2004-10-29format() should have hour output without leading zero
#2697ClosedBug2004-11-04Date does not return UTC
#3012BogusBug2004-12-22Date::convert hangs on Win2003
#3022ClosedBug2004-12-23Abbreviations of Weekday (and Month)
#3059ClosedBug2004-12-30Variables defined outside the Date_Span class are not available
#3345Wont fixReq2005-02-01Add methode to Date_Span which returns a nice formatted Span array
#3779SuspendedReq2005-03-11Instatiating under a timezone
#3846ClosedBug2005-03-16getYear and GetMonth incorrectly return a string
#3891SuspendedReq2005-03-20Getting date unresolved
#4026SuspendedBug2005-04-01missing dst data for Europe/Tallinn and Europe/Vilnius
#4130BogusBug2005-04-12?
#4468No FeedbackBug2005-05-29BDT DST timezone setting error
#4489No FeedbackBug2005-05-31CGI error on Windows 2003 / IIS6 for DST handling code
#4878ClosedBug2005-07-22DATE_FORMAT_ISO_EXTENDED_MICROTIME not padding seconds correctly
#5336Wont fixReq2005-09-08support EXIF date format
#5420ClosedBug2005-09-15Sets the default timezone to UTC instead of CEST
#5426SuspendedReq2005-09-15Cache the weekday and month names in Date_Calc
#5494ClosedBug2005-09-22%s formatter fails with locales that have a , as a decimal separator
#5714SuspendedReq2005-10-18Localized formatters missing
#5715ClosedBug2005-10-18Typo in Date/Span.php: $GLOBAL['foo'] instead of $GLOBALS['foo']
#6063BogusReq2005-11-24Date does not work under 5.1.0
#6083DuplicateBug2005-11-26Error whenever run under PHP 5.1
#6246ClosedBug2005-12-14inDaylightTime() crashes Apache 2.0.55 with status 3221225477
#6419BogusBug2006-01-05All timestamps with a length of 8, will generate a wrong date.
#6435ClosedBug2006-01-07Date_Span resets Timezone
#6633BogusBug1.4.62006-01-30Missing ?> at the end of files
#6711Wont fixReq1.4.62006-02-06getWeekFromDate method
#7225ClosedBug1.4.62006-03-28Date and TimeZone
#7399No FeedbackBug1.4.62006-04-14getNextDay() function occassionally skips days
#7439ClosedBug1.4.62006-04-20US/Indiana Daylight Savings Change
#7689No FeedbackBug1.4.62006-05-22Incorrect conversion of timezone offsets to unix timestamps
#8267SuspendedReq1.4.62006-07-23changed behaviour of Date::compare, new method isSameDay
#8518ClosedBug1.4.62006-08-20Date::copy() does not copy partsecond
#8783SuspendedReq1.4.62006-09-25support for years <0001
#8823SuspendedReq1.4.62006-10-01New functions:beginOfWeekBySpan,endOfWeekBySpan
#8912AssignedBug1.4.62006-10-08putenv causes crashes in DateTimeZone::inDaylightTime under windows.
#9213BogusBug1.4.62006-11-01Date_Calc doesn't like including Date.php
#9409ClosedBugCVS2006-11-21Fatal error using a non-array variable as an array
#9414ClosedBug1.4.62006-11-21addSeconds fails to work properly with negative numbers
#9417ClosedBug1.4.72006-11-22Date::Date_Span infinite loop PHP 5.1.6
#9568ClosedBug1.4.72006-12-07beginOfMonthBySpan - december, shifted one year
#9664SuspendedBug1.4.72006-12-20Date() low performance
#9700ClosedReq1.4.72006-12-26Incorrect timestamps allowd
#9732ClosedReq1.4.72007-01-04Wrong result from NWeekdayOfMonth!
#9801ClosedBug1.4.72007-01-11Date::compare() modify params on PHP5
#9802ClosedDoc1.4.72007-01-11Documentation missing
#9920Wont fixBug1.4.72007-01-22PHP_STRICT returns a slew of errors
#10349ClosedBug1.4.72007-03-13Wrong offset in timezones
#10591ClosedBug2007-04-02inDaylightTime fails
#10946OpenReq1.4.72007-05-06Date_Calc::dateFormat should default to DATE_CALC_FORMAT
#11003BogusBug1.4.72007-05-10Date_Calc:gregorianToISO() method ignores DATE_CALC_BEGIN_WEEKDAY option
#11090ClosedReq1.4.72007-05-21microtime is not set by default constructor
#11313ClosedBug1.4.72007-06-13DST time change not handled correctly
#11475ClosedBug1.4.72007-06-28Date::copy don't copy milisecond part
#11682ClosedBug1.4.72007-07-24Australia/Perth has DST
#11698ClosedBug1.4.72007-07-28upgrade @licence field in tests/calc.php
#11708ClosedBug1.4.72007-07-30getWeekdayAbbrname returns wrong lenght if string is unicode
#11709DuplicateBug1.4.72007-07-30getWeekdayAbbrname returns wrong lenght if string is unicode
#12019ClosedBug1.4.72007-09-11Date->after(...) changes the date
#12420ClosedBug1.4.72007-11-11Date constructor handles iso 8601 timezone offests of zero incorrectly
#12508DuplicateReq1.4.72007-11-22Can't use before 1000 year.
#12529ClosedBug1.4.72007-11-26setTZ globally sets your TZ instead of only within date object
#13219OpenReq1.4.72008-02-26Methods like getNextDay() should check for complete data fields first
#13376ClosedBug1.4.72008-03-11setFromDateDiff change source dates
#13480Wont fixBug1.5.0a12008-03-24Deprecated errors in many places
#13488ClosedReq1.5.0a12008-03-25Please rename Methods format2 and format3
#13545ClosedBugCVS2008-03-31Date_Span::set() doesn't work when passed an int and format
#13615ClosedBugCVS2008-04-07America/Toronto time-zone is missing longname and dstlongname
#13654BogusReq1.5.0a12008-04-11Date should throw an exception when setting an invalid date
#13710ClosedDocCVS2008-04-18wrong "No end-user documentation"
#13768ClosedDoc2008-04-24broken link
#14042OpenBug1.5.0a12008-06-01Timezone conversion wrong
#14084ClosedBug1.4.72008-06-05TZ variable being set wrecks global config
#14148OpenBug1.5.0a12008-06-16Offset for CEST seems to be incorrect
#14151VerifiedBug1.5.0a12008-06-16setDateTime references variables which are not passed to the method
#14389OpenBugCVS2008-07-22Timezone Offsets Wrong
#14413OpenBugCVS2008-07-28Passing a Unix timestamp in the constructor doesn't work (BC break)
#14434OpenBug1.4.72008-08-01Multiple calls to toUTC() weirdness
#14606OpenReq1.5.0a12008-09-06Extand with getNextMonth and getPrevMonth method
#14769OpenBug1.4.72008-10-09Venezuela and Toronto time zones
#14770OpenReqCVS2008-10-09If available, make use of PHP's DateTime tz information
#14852OpenBug1.5.0a12008-10-22DST in Time Zones for dates in past are inaccurate
#14856ClosedBugCVS2008-10-23America/Moncton longname and dstlongname missing
#14929ClosedBug1.5.0a12008-10-31Timezone summertime
#14951BogusReq1.4.72008-11-03Implement prevWeekday()
#15029ClosedDoc1.4.72008-11-14large Date_Span's cannot be created
#15478DuplicateBugCVS2009-01-01BC break - new Date(time()) doesn't work
#15631FeedbackReq1.4.72009-01-14determine if setDate detected valid format
#16237BogusBug1.5.0a12009-05-18Illegal Dates not checked
#16299OpenBug1.4.72009-06-06[PATCH] Date_TimeZone::inDaylightTime had nasty side-effects due to altering TZ
#16352OpenBugUnknown2009-06-20Inconsistent time conversion on window and linux with DST
#16434OpenBug1.4.72009-07-13Date object incorrectly loaded with UTC date/time minus 2 hours
#16520OpenBug1.5.0a12009-08-13Compare returns invalid result for certain dates due to standard time conversion
#16574OpenBug1.5.0a12009-09-07inDaylightTime fails for southern hemisphere DST
#16719BogusBug1.5.0a12009-10-21wrong dates for Holidays with Date_Holidays
#16770BogusBug1.5.0a12009-11-07static method being called in class, E_STRICT complains
#16822OpenBug1.4.72009-11-22setTZByID() does not behave as expected
#16954OpenBug1.4.72009-12-28Issue with setDate() with unix timestamp argument
#17410BogusBug1.5.0a12010-05-18addMinutes() unexpected result
#17626ClosedReqSVN2010-07-23Patch to add missing longname and dstlongname info
#17730ClosedBugSVN2010-08-17Patch: Avoid ereg, using preg_match
#17851Wont fixReq1.5.0a12010-09-08Class name is hard coded in methods
#18136OpenBug1.4.72010-12-22Method setDay can create invalid date
#18368OpenBug1.4.72011-03-17compare() modifies Objects
#18417OpenBug1.5.0a12011-03-31Date_Span changes timezone silently
#18942OpenBugUnknown2011-10-29DateDiff calculation error
#19184ClosedBugSVN2012-01-03use date_default_timezone_get() instead of ini_get(date.timezone)
#19350OpenBug1.5.0a22012-03-26Date comparison broken for BST this year
#19568ClosedBug1.5.0a22012-08-16setDate() handles ISO week dates incorrectly
#19723ClosedBug1.5.0a32012-11-27Tarball is broken
#20030Wont fixBug1.5.0a32013-08-07Incompatibilites with PHP 5.4x
#20085DuplicateBug1.5.0a32013-10-05tgz package provided for download does not contain any code
#20095OpenBug1.5.0a42013-10-13package requires none existent file