Time zone offsets for any time zone, possible change to Date functionality (i18n)
cira at google.com
Tue Apr 9 12:43:55 PDT 2013
That's correct. We may need reverse too - for given UTC epoch milliseconds
(or minutes after UTC Date) tell me what the date components would be in a
2013/4/9 Domenic Denicola <domenic at domenicdenicola.com>
> From: Nebojša Ćirić [cira at google.com]
> > Since we (i18n) already have timezone data for date formatting, we could
> do what we did for Date.prototype.toLocaleDateString and extend say
> Date.prototype.getTimezoneOffset method to support timezone parameter.
> This sounds amazing. Please do this.
> To clarify,
> var tzo = dateObj.getTimezoneOffset("America/New_York")
> would give the minutes offset of the America/New_York timezone, from UTC,
> at the point in time designated by `dateObj`. Right?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss