# [RFC] Add IntlTimeZone::getWindowsID() and IntlTimeZone::getIDForWindowsID() to ext/intl

- Thread: https://externals.io/message/91687
- Original archive: https://news-web.php.net/php.internals/91687
- Started by Sara Golemon on 2016-03-16T01:47:44+00:00
- Messages: 7
- RFC: TimeZone::getWindowsID (Implemented (PHP 7.1)) — https://externals.io/rfc/intl.timezone.get-windows-id.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #91687 — Sara Golemon — 2016-03-16T01:47:44+00:00

URL: https://externals.io/message/91687#91687

Pretty basic RFC: There's new methods in ICU 52, wrap 'em up and make
'em available.
Note that despite these APIs being windows focused, they are in fact
available on Linux.
They're just a database lookup, essentially.
https://wiki.php.net/rfc/intl.timezone.get-windows-id

-Sara

P.S. - Yes, tests are coming along before we get to voting.  :)

---

## #91716 — Stanislav Malyshev — 2016-03-16T21:58:31+00:00

URL: https://externals.io/message/91687#91716 · In reply to: #91687

Hi!

> Pretty basic RFC: There's new methods in ICU 52, wrap 'em up and make
> 'em available.
> Note that despite these APIs being windows focused, they are in fact
> available on Linux.
> They're just a database lookup, essentially.
> https://wiki.php.net/rfc/intl.timezone.get-windows-id

Looks pretty straightforward, and these are pretty simple, not even sure
we need RFC for such small incremental additions, but in any case, let's
do it :)

-- 
Stas Malyshev
smalyshev@gmail.com

---

## #91718 — Sara Golemon — 2016-03-16T22:16:45+00:00

URL: https://externals.io/message/91687#91718 · In reply to: #91716

> > […]
>
> Looks pretty straightforward, and these are pretty simple, not even sure
> we need RFC for such small incremental additions, but in any case, let's
> do it :)
>
Yeah, I was tempted to just merge it and wait for someone to complain.
But that's no way to embrace openness.  Besides, no rush to avoid the
delay for voting. :p

-Sara

---

## #91720 — Larry Garfield — 2016-03-16T22:20:03+00:00

URL: https://externals.io/message/91687#91720 · In reply to: #91718

> 
> > […]
> Yeah, I was tempted to just merge it and wait for someone to complain.
> But that's no way to embrace openness.  Besides, no rush to avoid the
> delay for voting. :p
>
> -Sara
>

If it works on Linux just fine, why is it called Windows?  Is that 
really what the ICU spec says to call them, rather than something 
meaningful?  (That would be sad making if so.)

-- 
--Larry Garfield

---

## #91724 — Lester Caine — 2016-03-16T23:44:47+00:00

URL: https://externals.io/message/91687#91724 · In reply to: #91720

> If it works on Linux just fine, why is it called Windows?  Is that
> really what the ICU spec says to call them, rather than something
> meaningful?  (That would be sad making if so.)

Simples ...
http://stackoverflow.com/questions/17348807/how-to-translate-between-windows-and-iana-time-zones

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

---

## #91725 — Sara Golemon — 2016-03-17T01:02:58+00:00

URL: https://externals.io/message/91687#91725 · In reply to: #91720

> If it works on Linux just fine, why is it called Windows?  Is that really
> what the ICU spec says to call them, rather than something meaningful?
> (That would be sad making if so.)
>
Because there's no "spec" as such for the names that Windows uses for
Timezones, they're just "The names that windows uses", so in an effort
to give them a categorical name, they're called.... windows IDs.

And yes, that's what ICU calls them, e.g.
icu::TimeZone::getWindowsID() <--- That's an ICU API.

-Sara

---

## #92435 — Trevor Suarez — 2016-04-19T01:08:45+00:00

URL: https://externals.io/message/91687#92435 · In reply to: #91725

I just wanted to personally thank Sara Golemon, and the PHP internals team,
for being so incredibly approachable, open, and all-around awesome.

The fact that a simple, informal tweet can turn into a core feature is
incredible: https://twitter.com/trevorsuarez/status/709864419753377792

Thanks again!
- Trevor
