RFC 0115: Make Date objects represent an instance in timeat 2007-09-04 in RFCs by kiesel (0 comments) Scope of ChangeThe 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 |
|