Time zone offsets for any time zone, possible change to Date functionality (i18n)

Nebojša Ćirić 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
given timezone.


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,
>
> ```js
> 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?
>



-- 
Nebojša Ćirić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130409/104e3d4d/attachment.html>


More information about the es-discuss mailing list