RFC 0115: Make Date objects represent an instance in time

at 2007-09-04 in RFCs by kiesel (0 comments)

Scope of Change
The Date class will be changed to also hold the timezone offset, thus making it a representation of an instance in time rather than a certain date and time.

Also, internally it will be backed by the new DateTime and related classes provided by PHP5. As part of that, all public members of util.Date will be removed.

Accessing separate values of the object will be possible through the public get*()-methods.

The serialization format of util.Date will change completely due to the internal change - deserialization of objects stored in the old format will be supported to maintain external backwards compatibility.

The method format() will not support any locale-dependent format tokens any more. The toString() method can output a Date object in any requested (and known) timezone.

Rationale
Addition of timezoneProblems with timezone conversions.

Read the full RFC here



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «RFC».