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 <[email protected]>

> From: Nebojša Ćirić [[email protected]]
>
> > 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ć
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to