xp-framework/rfc — Issue #36: Add timezone offset to date object
Author: thekid
Created: 2011-10-17 15:43:05+00:00
State: closed
Labels: framework, obsoleted

Scope of Change
====
Add the timezone offset against GMT to the util.Date class.

Rationale
====
This is required to be able to calculate the GMT representation
from a given date object. This information is required to properly
calculate time differences between date objects in different time-
zones.

Functionality
====
A new member $tz will be added to the util.Date class that contains
the offset of the timezone of the date object against GMT in seconds.
Negative offsets indicate timezones west of GMT, positive ones indicate
timezones east of GMT.

If constructing a date object without explicitely defining a timezone,
the hosts default timezone will be used.

Security considerations
====
n/a

Speed impact
====
This change adds a member variable and various getters and setters to the
util.Date class, which is a core class. This change will decrease speed and
increase the classes memory footprint. Speed deterioration should not be
measureable; the additional memory required is an acceptable trade-off.

Dependencies
====
n/a

Related documents
====
- Patch against svn trunk (TBI)
n/a