RE: exposing system time zone

2014-06-17 Thread Andrea Giammarchi
4 19:27 To: Andrea Giammarchi Cc: Norbert Lindenberg; Domenic Denicola; es-discuss Subject: Re: exposing system time zone The time zone the user wants to use, and therefore sets in the OS, is not always tied to the current location. For example, on a flight from San Francisco to Frankfurt I care abo

Re: exposing system time zone

2014-06-17 Thread Mark S. Miller
On Tue, Jun 17, 2014 at 7:27 PM, Norbert Lindenberg < ecmascr...@lindenbergsoftware.com> wrote: > The time zone the user wants to use, and therefore sets in the OS, is not > always tied to the current location. For example, on a flight from San > Francisco to Frankfurt I care about Pacific Time an

Re: exposing system time zone

2014-06-17 Thread Norbert Lindenberg
The time zone the user wants to use, and therefore sets in the OS, is not always tied to the current location. For example, on a flight from San Francisco to Frankfurt I care about Pacific Time and Central European Time, but not the other time zones I fly over. There are also locations for which

Re: exposing system time zone

2014-06-17 Thread Mark S. Miller
Even if the OS doesn't provide notifications, the implementation could poll in order to synthesize notifications. Given that the issue is time zone changes, the polling interval could be rather large without complaint, except from astronauts and east/west hyperloop travelers ;). On Tue, Jun 17, 2

Re: exposing system time zone

2014-06-17 Thread Norbert Lindenberg
On Jun 17, 2014, at 17:28 , David Herman wrote: > This was brought up on specifiction: > >http://discourse.specifiction.org/t/navigator-timezone/152 > > Does anyone know why it was left out of the first version of the Intl API? > Just for lack of time? Is it planned for the next edition?

Re: exposing system time zone

2014-06-17 Thread Andrea Giammarchi
without reinventing the wheel or changing it, I think timezone is very close to geolocation so why not navigator.geolocation.getTimeZone(*success*, *error*) asd navigator.geolocation.watchTimeZone(*success*, *error*) ? On Tue, Jun 17, 2014 at 5:31 PM, Domenic Denicola < dome...@domenicdenic

Re: exposing system time zone

2014-06-17 Thread David Herman
On Jun 17, 2014, at 5:31 PM, Domenic Denicola wrote: >> Interesting questions in that thread about what to do about time zone >> changes. An event for time zone changes seems important, but we don't >> currently have any precedent for standard library events in ECMAScript. > > Object.observe

Re: exposing system time zone

2014-06-17 Thread Andrew Paprocki
On Tue, Jun 17, 2014 at 5:28 PM, David Herman wrote: > Does anyone know why it was left out of the first version of the Intl API? > Just for lack of time? Is it planned for the next edition? Are there tricky > issues around standardizing IANA time zones, or around incompatibilities > between diff

RE: exposing system time zone

2014-06-17 Thread Domenic Denicola
> Interesting questions in that thread about what to do about time zone > changes. An event for time zone changes seems important, but we don't > currently have any precedent for standard library events in ECMAScript. Object.observe change records? A synthetic change event seems perfect for this

exposing system time zone

2014-06-17 Thread David Herman
This was brought up on specifiction: http://discourse.specifiction.org/t/navigator-timezone/152 Does anyone know why it was left out of the first version of the Intl API? Just for lack of time? Is it planned for the next edition? Are there tricky issues around standardizing IANA time zones,