[threeten-dev] zidtext parser

Stephen Colebourne scolebourne at joda.org
Fri Jan 4 02:32:03 PST 2013


On 3 January 2013 20:59, Xueming Shen <xueming.shen at oracle.com> wrote:
> Here is the first try of adding the zidtext parser
>
> http://cr.openjdk.java.net/~sherman/jdk8_threeten/zidtext_parse

In the test, you should use Queries.zoneId() instead of Queries.zone()
as it is stricter and a better test. I committed a change for this.

> But I'm not sure what the best way is to handle the "general" zone
> names, such as "Mountain Standard Time", "Western European Time".
> We have m:1 mapping when printing, what should we do for the
> 1:m parsing? Pick a "representable" zid and hardcode the mapping?

Realy, we should implement the rules described in CLDR, as they seem
to have thought about it:
http://www.unicode.org/reports/tr35/#Time_Zone_Fallback

Stephen


More information about the threeten-dev mailing list