Commit Graph

104 Commits

Author SHA1 Message Date
Derick Rethans
2628e5e4db - Fixed headers...
#- It makes sense to change the .re files instead of just the generated .c
#  files...
2009-07-29 15:41:21 +00:00
Derick Rethans
923a5de072 - Fixed bug #45554 (Inconsistent behavior of the u format char). 2009-07-29 15:34:59 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Derick Rethans
ad6f6c9a52 - Fixed bug #46889: Memory leak in strtotime(). 2008-12-18 14:54:51 +00:00
Derick Rethans
e15cb4df3f - Fixed an issue with the * format specifier for parsing from a user-defined
format.
2008-11-05 10:41:48 +00:00
Derick Rethans
be1daa2ba9 - Support for the Scottish "back of" and "front of" hour phrases. 2008-08-29 11:59:23 +00:00
Derick Rethans
0ae51b159e - Fixed a bug with the YYYY-MM format not resetting the day correctly.
- Fixed a bug in the DateTime->modify() methods, it would not use the advanced
  relative time strings.
- Fixed return values of all the modifying methods, they now properly return
  the object itself.
2008-07-30 17:48:21 +00:00
Derick Rethans
e68b8af578 - Fixed an issue with "first <weekday> of" in case the first <weekday> was the
same day-of-week as the first day of the month.
2008-07-23 19:52:51 +00:00
Derick Rethans
5ddf492cfc - Fixed bug #43452 (strings containing a weekday, or a number plus weekday
behaved incorrect of the current day-of-week was the same as the one in the
  phrase). (Derick)
2008-07-23 18:49:37 +00:00
Derick Rethans
b9c97d72a8 - Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone() behave
different).
2008-07-16 15:40:01 +00:00
Derick Rethans
89af1000b2 - Also add the warnings for times. This does not make sense for the english
text parser, as invalid times are never allowed in there.
2008-07-15 17:37:33 +00:00
Derick Rethans
e1787110f1 - Added a warning to the error struct in case a parsed-date was found to be
invalid.
2008-07-14 17:30:09 +00:00
Derick Rethans
0e86197822 - Fixed a compiler warning - the code didn't make much sense. 2008-07-11 08:42:11 +00:00
Derick Rethans
b30cdcd5a7 - Fixed bug #45459 (date_create_from_format() fails on DATE_RFC3339) by
allowing a few more format specifiers in date_create_from_format() /
  date_parse_from_format().
2008-07-08 20:23:38 +00:00
Derick Rethans
3042898466 - Fixed some ambiguities in the date parser. 2008-07-08 18:27:07 +00:00
Derick Rethans
a339c57e1d - Replaced // by /* .. */ comments. 2008-07-08 17:56:36 +00:00
Derick Rethans
c070512ee4 - Added support for "<xth> <weekday of" and "last <weekday> of" phrases to be
used with months - like in "last saturday of februari 2008".
2008-05-04 20:50:46 +00:00
Derick Rethans
2352d10de2 - Added DateInterval::createFromDateString() that creates an interval
from the relative parts of a date/time string.
- Fixed an issue where special relative bits were not applied.
#- @DOC
2008-05-02 12:48:19 +00:00
Derick Rethans
6205943023 - Rearranged some structures to allow for more powerfull period/intervals. 2008-05-01 16:14:29 +00:00
Derick Rethans
089bc254eb - Fixed "this week", "previous week"/"last week" and "next week" phrases by
actually meaning the week.
#- For now the week starts on Monday, but I plan on making that configurable.
2008-04-27 19:12:10 +00:00
Ilia Alshanetsky
4743186f27 MFB: removed unused var 2008-03-23 15:49:51 +00:00
Derick Rethans
c7703dec10 - MF53: Added support for parsing date/time strings returned by MS SQL with strtotime(). 2008-03-13 15:54:53 +00:00
Derick Rethans
3b3d13ea0a - Added a few new separation specifiers.
- Added specifiers that can reset or default the y/m/d/h/i/s/tz values.
- Fixed a problem with parsing timezones as part of a format.
#- [DOC]: Added format specifiers.
2008-02-25 18:25:01 +00:00
Derick Rethans
93432884b2 - Fixed typoes. 2008-02-17 18:17:01 +00:00
Derick Rethans
91038a08bf - Support "first/last day of <month>" style texts. 2008-02-03 14:10:48 +00:00
Derick Rethans
6d6ae90d03 - MF53: That should have been ||. 2008-01-29 20:15:44 +00:00
Derick Rethans
4b738ef8ba - Commit generated file. 2008-01-29 20:10:53 +00:00
Derick Rethans
dc5f4e48ee - Fixed parsing of timestamps. 2008-01-27 22:15:59 +00:00
Derick Rethans
13d1ef3015 - Fixed bug #43075 (Support 2007-11-01T24:00:00+00:00). 2008-01-17 20:43:58 +00:00
Derick Rethans
6be4825777 - MF53: Added new date/time functionality:
* date_parse_from_format(): Parse date/time strings according to a format.
  * date_create_from_format()/DateTime::createFromFormat(): Create a date/time
    object by parsing a date/time string according to a given format.
  * date_get_last_errors()/DateTime::getLastErrors(): Return a list of warnings
    and errors that were found while parsing a date/time string through:
    - strtotime() / new DateTime
    - date_create_from_format() / DateTime::createFromFormat()
    - date_parse_from_format()
2008-01-13 15:16:48 +00:00
Derick Rethans
b49f733c6a - Commit generated file. 2007-07-12 18:59:35 +00:00
Derick Rethans
3eef99f6cd - MFB: Fixed bug #40290 (strtotime() returns unexpected result with particular
timezone offset).
2007-04-13 08:11:35 +00:00
Derick Rethans
e9f77bb7e5 - Fixed bug #40861 (strtotime() doesn't handle double negative relative time
units correctly).
2007-04-11 14:36:45 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
869fe0320e MFB: Fixed bug #39791 (Crash in strtotime() on overly long relative date
multipliers).
2006-12-11 05:04:58 +00:00
Derick Rethans
319a3dcb80 - The .c file is generated... so updating the .re file and cleaning up WS. 2006-09-09 12:25:54 +00:00
Antony Dovgal
cb04bb6a4f fix #38721 (date_parse() invalid read) 2006-09-08 20:22:23 +00:00
Derick Rethans
058b359800 - Added support for the full ISO week number format. (2006-W52-7) 2006-09-06 07:33:59 +00:00
Ilia Alshanetsky
2a2450cb59 MFB: Fixed bug #38229 (strtotime() does not parse YYYY-MM format). 2006-07-27 13:01:10 +00:00
Derick Rethans
654b601543 - MF52: Fixed bug #37747 (strtotime segfaults when given "nextyear"). 2006-06-08 16:30:37 +00:00
Derick Rethans
43ca53674c - MF52: Fixed bug #37514 (strtotime doesn't assume year correctly). 2006-05-19 14:53:07 +00:00
Derick Rethans
5845a93484 - Implemented Dmitry's const patch.
- Added support for "weekday" as relative item.
- Fixed bug #37368 (Incorrect timestamp returned for strtotime()).
2006-05-14 17:30:26 +00:00
Derick Rethans
74c0864346 - Fixed bug #37017 in a different way and added a test case. 2006-04-09 12:58:56 +00:00
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
Derick Rethans
bb7246d36f - Fixed bug #36638 (strtotime unconditional false return on now <= 0) 2006-03-06 21:43:35 +00:00
Derick Rethans
2068a3bea5 - Fixed bug #36510 (strtotime string with tabs - changed behaviour). 2006-02-27 19:39:21 +00:00
Ilia Alshanetsky
736a05f959 MFB51: Revert previous fix to allow for a more comprehensive patch from Derick. 2006-02-26 22:15:22 +00:00
Ilia Alshanetsky
341113bdb2 Fixed file 2006-02-26 17:07:33 +00:00
Ilia Alshanetsky
4c722c519f MFB51: Fixed bug #36510 (strtotime() fails to parse date strings with tabs). 2006-02-26 17:07:17 +00:00
Derick Rethans
945cba102a - Added support for exif date format
- Fixed bug #36396 (strtotime() fails to parse dates in dd-mm-yyyy format).
2006-02-24 09:43:30 +00:00