Commit Graph

19 Commits

Author SHA1 Message Date
Derick Rethans
7ca9d09689 - Added the date_parse() function that returns a parsed date/time string
including warnings and errors.
- Added the timezone_name_from_abbr() function that exposes the guessing
  mechanism that tries to find a timezone identifier from a timezone
  abbreviation and GMT offset.
- Fixed a bug where combined date formats 'c' and 'r' were cut off due to
  insufficient space in the buffer.
- Implemented better error and warning handling that is also used for the
  date_parse() function.
- Fixed the date::RFC3339 class constant.
- Fixed bug #37017 (strtotime fails before 13:00:00 with some time zones
  identifiers)
- Fixed problems with "T" in front of a time string was seen as a time zone
  string.
- Fixed a problem were 5 and 6 character timezone abbreviations where not
  correctly parsed.
2006-04-08 14:57:42 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Derick Rethans
d095243b99 - MF51: Fixed bug #34874 and #33546 (Problems with lone daynames). 2005-10-19 21:11:15 +00:00
foobar
1ce96bd69f Generated files are included like this.. 2005-10-03 20:20:50 +00:00
Derick Rethans
b75871d017 - Allow an external Timezone Database to be used. 2005-10-03 11:15:21 +00:00
Derick Rethans
2eaf85c481 - MF51: Implemented better timezone guessing algorithm. 2005-10-01 15:07:20 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Derick Rethans
e6c1ff254d - Fixed bug #33578 (strtotime() problem with "Oct17" format).
- Fixed problems with lone years in strtotime().
- Added functions to timelib to get a list of all abbreviations and timezone
  identifiers.
- Fixed problems with parsed dates that only have GMT offsets associated
  with them.
- Fixed a Windows compile problem.
- Added special constants for different often used date formats (DATE_ISO8601,
  DATE_RFC822, DATE_RSS etc).
- Fixed date_default_timezone_get() to return the guessed timezone if none
  was set yet with date_default_timezone_set().
- Added experimental support for Date/Timezone objects as per specifications.
2005-07-20 08:31:02 +00:00
Derick Rethans
e155585e6e - Reimplemented date and gmdate with new timelib code.
- Removed old date/gmdate implementations.
- Moved date() related testcases to ext/date/tests.
- Implemented bug #33452.
- Fixed testcase for bug #27719 - there is no timezone called "EST5DST".
2005-06-30 21:38:06 +00:00
Derick Rethans
e4860af785 - Reorganize headers, and update TODO. 2005-06-29 19:08:26 +00:00
Derick Rethans
9f2283b8a0 - Fixed bug in tm2unixtime where the wanted date was in the transition time
between two zones.
#- In this case the wanted date actually didn't exist, and that wasn't
#  handled correctly.
2005-06-18 19:23:58 +00:00
Derick Rethans
c41145799d - The incoming TS is GMT... but the hole filler wants local time so we
have to convert it.
- Change e-mail address
2005-06-17 14:54:00 +00:00
foobar
a736f99e2f - Improve portability.
# TODO: The standalone lib needs it's own build stuff, pretty much same as
#       Zend has for standalone builds.
2005-06-16 23:12:10 +00:00
Derick Rethans
ca16776087 - Fixed headers for FreeBSD
- Moved from ntohl to own macro
- Export timelib_dump_tzinfo
2005-06-16 18:34:42 +00:00
Derick Rethans
eb8b4fd4a1 - Make it compile cleanly with MS VC++ too, which is completely anal in some
cases.
2005-06-15 11:01:07 +00:00
Edin Kadribasic
cc33e8f536 Nuke PHP_ prefix from timelib 2005-06-15 09:02:28 +00:00
Derick Rethans
952a2c8234 - Whitespace and regenerate the .c file with my re2c. 2005-06-15 07:23:27 +00:00
Edin Kadribasic
289997715a Make it compile on windows 2005-06-15 00:11:29 +00:00
Derick Rethans
4fb4cac65c - Add my new timelib and ext/date. For now only strtotime() makes use of this. 2005-06-14 21:32:29 +00:00