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
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +00:00
Scott MacVicar
b03ba567d8
MFB: Change createFromTimestamp to setTimestamp
2007-12-14 14:52:38 +00:00
Scott MacVicar
feaa1ba014
- Add Datetime::createFromTimestamp to allow setting of a unix timestamp without invoking the date parser.
2007-12-14 14:27:18 +00:00
Ilia Alshanetsky
e02a63c98c
MFB: Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone)
2007-11-23 00:15:37 +00:00
Yiduo (David) Wang
95da0dc570
Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:15:07 +00:00
Dmitry Stogov
8146078f7b
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:28:44 +00:00
Derick Rethans
14df6eb975
- Ugh, fix this properly.
2007-09-03 12:12:51 +00:00
Derick Rethans
cf0e879870
- Fixed DateTimeZone::getTransitions().
2007-09-03 12:03:46 +00:00
Dmitry Stogov
e76b7240a1
Unicode support
2007-07-13 15:22:34 +00:00
Derick Rethans
d43b79f12b
- Missing file in commit.
2007-07-12 18:58:48 +00:00
Ilia Alshanetsky
254827fbb7
MFB: Final shot at the date issue
2007-06-07 23:16:41 +00:00
Antony Dovgal
a9f6f71460
check return value of *time_r() functions for NULL
...
more checks will follow
2007-06-07 08:46:32 +00:00
Ilia Alshanetsky
26255ddf1a
Fixed typo
2007-06-07 02:21:55 +00:00
Ilia Alshanetsky
2d13cd37be
MFB: Adjust previous patch to work on all compilers
2007-06-06 23:16:45 +00:00
Ilia Alshanetsky
da635f2b98
MFB: Optimize out a loop
2007-06-06 22:58:53 +00:00
Antony Dovgal
fe2cd52ac1
fix timezone_abbreviations_list() in unicode mode
2007-04-20 20:55:30 +00:00
Derick Rethans
a843b46454
- MFB: Fixed bug #39416 (Milliseconds in date()).
2007-04-13 14:10:38 +00:00
Derick Rethans
59fcb5299d
- MFB: Fixed bug #39965 (Latitude and longitude are backwards in date_sun_info()).
2007-04-13 08:34:11 +00:00
Michael Wallner
d431a16629
- fix ws as requested by derick
2007-03-05 14:10:05 +00:00
Michael Wallner
75383d4658
- fix bug #40691 : add comparison object handler
2007-03-05 14:05:31 +00:00
Derick Rethans
e3794a3986
- Clarify the source of the timezone data.
2007-02-14 19:35:01 +00:00
Marcus Boerger
6640eadc15
- Fix warnings
2007-01-20 12:22:02 +00:00
Marcus Boerger
9ad7d83a03
- We want the size here not the length
2007-01-18 23:17:49 +00:00
Derick Rethans
44327b0af2
- MFB: Fixed bug #40012 (php_date.c doesnt compile on Netware).
2007-01-03 14:46:52 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
63bcfa04e8
MFB: Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday
...
yields incorrect results).
2006-12-11 21:08:44 +00:00
Hannes Magnusson
62003ce506
Throw exception on invalid parameters in DateTime::__construct()
...
#makes sure the object doesnt get initialized with bogus parameters
2006-11-06 16:10:33 +00:00
Hannes Magnusson
641df597fa
Add oneliner descriptions
2006-10-25 12:35:16 +00:00
Hannes Magnusson
176b72284c
Error message clean up
...
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Hannes Magnusson
523180a5a7
Add "wrong param count"/"expecting parameter .. to be.." warning to strtotime()
2006-10-07 22:31:52 +00:00
Hannes Magnusson
b3a5b40029
use PHP_ME_MAPPING rather than ZEND_NAMED_FE/ZEND_FENTRY
2006-10-03 14:55:42 +00:00
Hannes Magnusson
a2ffbd396d
add proto
2006-10-02 07:32:16 +00:00
Derick Rethans
d12d204cf1
- Return timezone's names as Unicode strings.
2006-09-27 18:32:24 +00:00
Dmitry Stogov
128548a5c0
Disabled autoconversion of hash keys (from string to unicode) for PHP arrays
2006-09-19 10:38:31 +00:00
Hannes Magnusson
9dceb42867
Add protos
2006-09-10 17:01:10 +00:00
Hannes Magnusson
f2ad985262
- date_timezone_set() needs both arguments
...
- Throw exception in DateTimeZone::__construct if no arguments are passed
2006-09-10 16:32:30 +00:00
Nuno Lopes
573f153e06
MFB: int->zend_bool where possible
2006-09-05 12:42:25 +00:00
Michael Wallner
7c8079c8ce
- attempt to fix #38696
2006-09-03 09:09:38 +00:00
Ilia Alshanetsky
994cf483e1
MFB: 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:43 +00:00
Michael Wallner
7fc16dec3e
- fix leak when cloning DateTimeZone, detected by Antony
...
- don't fetch objects multiple times when cloning
2006-08-15 06:53:02 +00:00
Michael Wallner
62f04bba34
- add cloning support to DateTime classes
2006-08-14 20:02:52 +00:00
Michael Wallner
f1ff6fb935
- use library error message on time string parse failure
2006-08-01 16:45:24 +00:00
Michael Wallner
c5db30db85
- fix leaks on multiple calls to DateTime::__construct()
...
- throw exception on unparseable time strings in DateTime::__construct()
# I guess I'm done now
2006-08-01 15:54:45 +00:00
Michael Wallner
6582daf259
- OO fixes:
...
. no is_ref for objects in PHP5+
. initialize objects when created with the `new` operator
. check for proper initialization in child classes
- fix typo: transistion -> transition
- add test
2006-08-01 13:27:41 +00:00
Derick Rethans
13b1d8b95b
- Rename date classes to DateTime and DateTimeZone
2006-07-20 15:48:36 +00:00
Derick Rethans
6ce33efe08
- Enable all methods in the already existing Date and Timezone classes
2006-07-18 12:37:49 +00:00
Antony Dovgal
0af0ad4ef7
initialize vars
2006-07-10 11:25:59 +00:00