1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00
Commit Graph

166 Commits

Author SHA1 Message Date
Derick Rethans 02a5dc7764 - Updated to version 2008.3 (2008c) 2008-05-27 12:19:47 +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 92975a6319 - Added support for using ISO 8601 time intervals to define a DatePeriod
iterator.
2008-05-04 09:59:42 +00:00
Derick Rethans 4d6933d254 - Fixed weekdays algorithm. 2008-05-03 10:03:21 +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 b1960e2af3 - Added the DatePeriod class/iterator that iterates over a date time object
for a specific number of iterators and applies a DateInterval each time.
2008-05-01 00:10:25 +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
Derick Rethans 64b888c0fa - MF53: Added new date/time functionality:
. support for diffing date/times through date_diff() / DateTime::diff().
  . added DateInterval class to represent the difference between two date/times.
  . support for parsing ISO intervals for use with DateInterval.
  . date_add() / DateTime::add(), date_sub() / DateTime::sub() for applying an
    interval to an existing date/time.
2008-04-25 12:55:16 +00:00
Derick Rethans 3954343162 - Fixing returned offset.
- Algorithm optimization.
2008-04-07 17:43:49 +00:00
Derick Rethans 38ffd11722 - Updated to version 2008.2 (2008b) 2008-03-24 13:00:24 +00:00
Ilia Alshanetsky 4743186f27 MFB: removed unused var 2008-03-23 15:49:51 +00:00
Derick Rethans ee6f62b1cb - Updated to version 2008.1 (2008a) 2008-03-16 07:20:17 +00:00
Derick Rethans cc07cc0bd9 - MF53: Fixed bug #44257 (timelib_tz_lookup_table must use float for
gmtoffset).
2008-03-13 16:00:18 +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 4c1dd9079d - Fixed bug #44216 (strftime segfaults on large negative value). 2008-02-22 17:48:31 +00:00
Derick Rethans 7f7c1c986e - Fixed bug #44209: strtotime doesn't support 64 bit timestamps. 2008-02-22 09:47:10 +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 87c936ef2c - Fixed bug #43960 (strtotime() returns timestamp in the future when given a
bogus string).
2008-01-29 20:08:42 +00:00
Derick Rethans dc5f4e48ee - Fixed parsing of timestamps. 2008-01-27 22:15:59 +00:00
Derick Rethans cd9bc73574 - Fixed bug #41599 (setTime() fails after modify() is used). 2008-01-17 20:58:26 +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 6973393112 - Updated to version 2007.11 2008-01-01 15:31:43 +00:00
Sebastian Bergmann 9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Derick Rethans 7b19ae3023 - Updated to version 2007.10 2007-12-03 15:16:21 +00:00
Derick Rethans 5a4e6c233f - Updated to version 2007.9 2007-11-05 09:24:17 +00:00
Derick Rethans 9e67f64a00 - Updated to version 2007.8 2007-10-11 18:35:04 +00:00
Antony Dovgal a2d6d5fbb2 detect endianness in compile time when using Apple's GCC (fixes universal binary build) 2007-09-04 18:46:08 +00:00
Jani Taskinen 5c0df4eb38 - Fix warnings 2007-07-20 23:53:29 +00:00
Derick Rethans 56828aba9a - Let's always use the macro as llabs() requires c99. 2007-07-13 17:49:18 +00:00
Rob Richards 982967b637 use macro - llabs not always available on win32 2007-07-13 12:48:47 +00:00
Derick Rethans b49f733c6a - Commit generated file. 2007-07-12 18:59:35 +00:00
Derick Rethans 1e096be0b3 - Fixed bug #41964 (strtotime returns a timestamp for non-time string of
pattern '(A|a) .+').
- Fixed bug #41844 (Format returns incorrect number of digits for negative
  years -0001 to -0999).
- Fixed bug #41842 (Cannot create years < 0100 & negative years with
  date_create or new DateTime).
- Fixed bug #41709 (strtotime() does not handle 00.00.0000).
- Fixed bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as 1999-11-30).
2007-07-12 18:56:42 +00:00
Derick Rethans ee6242887c - Updated to 2007f. 2007-07-05 13:48:23 +00:00
Derick Rethans 916e90c9e2 - MFB: Updated timezone database to version 2007.5. (Derick) 2007-04-13 14:52:06 +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
Derick Rethans d184a4f9c3 - MF52: Updated timezone database to version 2007.3. 2007-03-06 21:29:33 +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 26568762da - Updated timezone database to version 2006.16. 2006-11-29 20:01:28 +00:00
Nuno Lopes a72df3dc05 MFB 2006-11-10 23:27:31 +00:00
Nuno Lopes 3cc8329e12 MFB 2006-11-10 17:32:42 +00:00
Derick Rethans 96c237275a - MF52: Updated timezone database. 2006-10-17 17:08:52 +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