Commit Graph

380 Commits

Author SHA1 Message Date
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
62a4aff5f8 - MF52: Fixed bug #44703 (htmlspecialchars() does not detect bad character set
argument).
#- WIll merge to 5.3 later, that branch has some more modifications.
2008-04-16 17:24:00 +00:00
Jani Taskinen
6fa8f52e7d - fix test 2008-04-08 11:58:03 +00:00
Derick Rethans
3954343162 - Fixing returned offset.
- Algorithm optimization.
2008-04-07 17:43:49 +00:00
Derick Rethans
d3a0dbf991 - Fixed testcases. 2008-04-07 17:41:48 +00:00
Derick Rethans
08534e1bee - Fixed a bug in formatting timestamps when DST is active in the default
timezone.
2008-03-31 09:10:54 +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
993eb05f5b - Fix the DateTimeZone::getTransitions() algorithm. 2008-03-20 19:43:02 +00:00
Ilia Alshanetsky
6cbde65afa MFB: Remove unused variable 2008-03-16 15:15:47 +00:00
Derick Rethans
ee6f62b1cb - Updated to version 2008.1 (2008a) 2008-03-16 07:20:17 +00:00
Felipe Pena
6779560ec5 Fix build (ZTS) 2008-03-14 17:57:44 +00:00
Derick Rethans
56ba1cf8fa - Allow datetime objects to be serialized and woken up.
- Implemented __set_state().
2008-03-14 16:18:25 +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
Ilia Alshanetsky
d2827c1e6a MFB: Initialize ts only after successful argument parsing 2008-03-09 18:10:09 +00:00
Ilia Alshanetsky
e9c77a5e92 MFB: Fixed a memory leak inside date_get_last_errors() when there are no
errors
2008-03-07 02:05:48 +00:00
Felipe Pena
2818d4fc51 New way for check void parameters 2008-03-04 23:39:15 +00:00
Derick Rethans
964189e41e - Fixed bug #44260 (African timezones missing). 2008-02-27 09:47:23 +00:00
Derick Rethans
a39148adf7 - Fixed tests on 64bit platform. 2008-02-25 22:32:26 +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
Marcus Boerger
6b58678c63 - Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus) 2008-02-23 17:03:53 +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
aa93ba42ff - Add some missing elements from the return value. 2008-02-13 21:53:01 +00:00
Derick Rethans
836e228265 - Sync tests. 2008-02-03 14:37:00 +00:00
Derick Rethans
91038a08bf - Support "first/last day of <month>" style texts. 2008-02-03 14:10:48 +00:00
Derick Rethans
2c2947f93d - Make timezone_open() work again. 2008-02-02 17:25:40 +00:00
Derick Rethans
6d6ae90d03 - MF53: That should have been ||. 2008-01-29 20:15:44 +00:00
Derick Rethans
c3505930f0 - Make whitespace the same as in 5.3. 2008-01-29 20:12:23 +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
bc72c13db1 - Added two optional parameters to timezone_transitions_get() /
DateTimeZone::getTranstions() to limit the range of transitions being
  returned.
2008-01-28 21:12:24 +00:00
Derick Rethans
22c1b3b303 - MF53: Fixed test case. 2008-01-28 21:02:09 +00:00
Derick Rethans
ba5cc7524a - MF53: Added missing folding tags. 2008-01-28 20:36:04 +00:00
Derick Rethans
b66faab7be - Added DateTime::getTimestamp() / date_timestamp_get(). 2008-01-28 20:29:40 +00:00
Derick Rethans
dc5f4e48ee - Fixed parsing of timestamps. 2008-01-27 22:15:59 +00:00
Derick Rethans
408a892458 - Update proto. 2008-01-27 17:44:16 +00:00
Derick Rethans
14665d9149 - Added support for selectively listing timezone identifiers through
timezone_identifiers_list() / DateTimezone::listIdentifiers().
2008-01-27 17:28:58 +00:00
Nuno Lopes
b952c7f048 fix test 2008-01-27 17:02:01 +00:00
Antony Dovgal
2d5ff6a7b0 add missing TSRMLS_CC and fix segfaults in ZTS mode 2008-01-23 15:14:18 +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
19af2f67d1 - Fixed bug #43808 (date_create never fails (even when it should)). 2008-01-17 20:34:17 +00:00
Derick Rethans
da0da918c0 - Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed
using a timestamp).
2008-01-17 19:58:24 +00:00
Derick Rethans
64c498bddd - Added support for abbreviation and offset based timezone specifiers for
DateTime::getOffset() and DateTime::getName().
- Fixed bug #43527 (DateTime created from a timestamp reports environment
  timezone).
- Fixed bug #42190 (Constructing DateTime with TimeZone Indicator invalidates
  DateTimeZone).
2008-01-17 18:48:44 +00:00
Derick Rethans
c52fda6aae - Fixed TSRM builds.
#- Thanks for the hint Steph.
2008-01-13 18:42:51 +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