<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I understand the 184 day rule when used to determine things like
residency for tax purposes. but how does the ICU use it?</p>
<p>I looked at the C++ code which, fortunately. I never had to
learn, and is still Greek to me. ;-)</p>
<p>Thanks in advance.<br>
</p>
<div class="moz-cite-prefix">On 10/16/2023 7:19 PM, Matt
Johnson-Pint via tz wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKxAwDoYZ6ROsbis6g_TwgP4bVsPYDU3domFvM-jOFRLJgrWYw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Unfortunately, ICU always uses the 184 day rule to
choose the standard name when formatting generic non-location
names, regardless of whether a more suitable generic name exists
or not. See the implementation of the
formatGenericNonLocationName function (search for usages of the
kDstCheckRange constant).
<div><br>
<div>
<div><a
href="https://github.com/unicode-org/icu/blob/3d1dee683743c4578ced479c10b1fbe25aeacc9a/icu4c/source/i18n/tzgnames.cpp#L594"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/unicode-org/icu/blob/3d1dee683743c4578ced479c10b1fbe25aeacc9a/icu4c/source/i18n/tzgnames.cpp#L594</a><br>
</div>
</div>
</div>
<div><br>
</div>
<div>I agree - this is entirely too complicated. The fact is
that currently, ICU generic names (of any form) are designed
to apply in the context of having a date, time, and time zone
- not for choosing a time zone from a list. Sometimes those
are the same, but not always.</div>
<div><br>
</div>
<div>-Matt</div>
<div><br>
</div>
</div>
<br>
</blockquote>
<div class="moz-signature"
signature-switch-id="2a960ae5-2804-4ecf-97e7-3a41e033b905">Donald<br>
<br>
<pre>Photographers fade faster than photographs.
</pre>
</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /><table style="border-top: 1px solid #D3D4DE;"><tr><td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"/></a></td><td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free.<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a></td></tr></table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>