Ilia Alshanetsky
33e23bd355
Initialize ts only after successful argument parsing
2008-03-09 18:09:53 +00:00
Ilia Alshanetsky
bbf53bbb04
Fixed a memory leak inside date_get_last_errors() when there are no errors
2008-03-07 02:04:40 +00:00
Derick Rethans
825c3f5ac2
- MFH: Fixed bug #44260 (African timezones missing).
2008-02-27 09:47:35 +00:00
Marcus Boerger
d3e5026564
- MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
...
[DOC] Finally added deprecation messages
2008-02-23 17:06:22 +00:00
Derick Rethans
3edbc7b0b3
- MFH: Add some missing elements from the return value.
2008-02-13 21:53:12 +00:00
Derick Rethans
3121962808
- MFH: Make timezone_open() work again.
2008-02-02 17:25:54 +00:00
Derick Rethans
81f2dc39bd
- Make whitespace the same as in HEAD.
2008-01-29 20:12:53 +00:00
Derick Rethans
a1180690a4
- MFH: Added two optional parameters to timezone_transitions_get() /
...
DateTimeZone::getTranstions() to limit the range of transitions being
returned.
2008-01-28 21:12:41 +00:00
Derick Rethans
19f6fcce87
- Add missing folding tags.
2008-01-28 20:35:17 +00:00
Derick Rethans
ffbe501ad2
- MFH: Added date_timestamp_get() / DateTime::getTimestamp() to retrieve the
...
Unix timestamp belonging to a date object.
2008-01-28 20:30:51 +00:00
Derick Rethans
dc04a42e5c
- MFH: Update proto
2008-01-27 17:44:29 +00:00
Derick Rethans
216d0cb0ff
- MFH: Added support for selectively listing timezone identifiers through
...
timezone_identifiers_list() / DateTimezone::listIdentifiers().
2008-01-27 17:29:14 +00:00
Derick Rethans
3fb0e425e0
- MFH: Fixed bug #43808 (date_create never fails (even when it should)).
2008-01-17 20:35:02 +00:00
Derick Rethans
2d4db6b8d6
- Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed
...
using a timestamp).
2008-01-17 19:59:00 +00:00
Derick Rethans
e549873c10
- MFH: Added support for abbreviation and offset based timezone specifiers for
...
DateTime::getOffset() and DateTime::getName().
- MFH: Fixed bug #43527 (DateTime created from a timestamp reports environment
timezone).
- MFH: Fixed bug #42190 (Constructing DateTime with TimeZone Indicator
invalidates DateTimeZone).
2008-01-17 18:49:45 +00:00
Derick Rethans
c4fb570ef3
- Fixed TSRM builds.
2008-01-13 18:42:19 +00:00
Derick Rethans
9f979a16bf
- 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()
# [DOC]
2008-01-13 15:16:02 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Scott MacVicar
d4bbbc0eab
Change createFromTimestamp to setTimestamp
2007-12-14 14:49:15 +00:00
Scott MacVicar
6f04c5169e
MFH: Add Datetime::createFromTimestamp to allow setting of a unix timestamp without invoking the date parser.
2007-12-14 14:28:36 +00:00
Ilia Alshanetsky
a4e3969215
Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone)
2007-11-23 00:15:24 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Derick Rethans
7588023b65
- MFH: Missing file in previous commit.
2007-07-12 18:59:05 +00:00
Ilia Alshanetsky
a6340d27ae
Final shot at the date issue
2007-06-07 23:16:04 +00:00
Antony Dovgal
c9805e7b92
MFH: check return value of *time_r() functions for NULL
2007-06-07 08:44:41 +00:00
Ilia Alshanetsky
594fe5c398
Fixed typo
2007-06-07 02:21:26 +00:00
Ilia Alshanetsky
d02356922a
Adjust previous patch to work on all compilers
2007-06-06 23:16:34 +00:00
Ilia Alshanetsky
a20bba04d5
Optimize out a loop
2007-06-06 22:58:42 +00:00
Derick Rethans
35d5a196bd
- Fixed bug #39416 (Milliseconds in date()).
2007-04-13 14:09:20 +00:00
Derick Rethans
2e18eb3858
- Fixed bug #39965 (Latitude and longitude are backwards in date_sun_info()).
2007-04-13 08:33:48 +00:00
Michael Wallner
3db2db7159
- fix ws as requested by derick
2007-03-05 14:10:18 +00:00
Michael Wallner
87b02796d8
- fix bug #40691 : add comparison object handler
2007-03-05 14:05:55 +00:00
Ilia Alshanetsky
cc04404b28
snprintf() -> slprintf()
...
# Part 1
2007-02-27 03:04:40 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Derick Rethans
e254f976fb
- MFH: Clarify the source of the timezone data.
2007-02-14 19:35:09 +00:00
Derick Rethans
3dcf540547
- Fixed bug #40012 (php_date.c doesnt compile on Netware).
2007-01-03 14:46:23 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
7772e33ace
Small optimization of the date() function
2006-12-22 15:21:34 +00:00
Ilia Alshanetsky
2f291233e6
Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday
...
yields incorrect results).
2006-12-11 21:04:40 +00:00
Hannes Magnusson
c263929002
MFH: throw exception on invalid parameters
2006-11-06 16:11:26 +00:00
Hannes Magnusson
91c604d584
MFH: Add "wrong param" warning to strtotime()
2006-11-03 15:06:51 +00:00
Hannes Magnusson
11c47dc510
MFH: oneliners..
2006-11-03 14:38:45 +00:00
Hannes Magnusson
07a16d19e0
MFH: use PHP_ME_MAPPING rather than ZEND_NAMED_FE/ZEND_FN
2006-11-03 14:36:11 +00:00
Hannes Magnusson
0ce31d14f5
MFH: proots
2006-09-10 17:01:51 +00:00
Hannes Magnusson
b6a5941b97
MFH: date_timezone_set() needs both arguments
...
MFH: throw exception in DateTimeZone::__construct() when no arguments are passed
2006-09-10 16:34:08 +00:00
Nuno Lopes
4cff5db8f4
int->zend_bool where possible
2006-09-05 12:39:20 +00:00
Michael Wallner
eca5331a81
- attempt to fix #38696
2006-09-03 09:09:56 +00:00
Ilia Alshanetsky
d4ff427c55
Fixed bug #38511 , #38473 , #38263 (Fixed session extension request shutdown
...
order to ensure it is shutdown before the extensions it may depend on).
2006-08-22 16:47:23 +00:00
Michael Wallner
f5ea2dfac4
MFH:
...
- fix leak when cloning DateTimeZone, detected by Antony
- don't fetch objects multiple times when cloning
2006-08-15 06:53:21 +00:00