There is also a c# API implementation at <a href="http://www.codeproject.com/KB/locale/zoneinfo_dotnet_api.aspx">http://www.codeproject.com/KB/locale/zoneinfo_dotnet_api.aspx</a><div><br></div><div>Cheers</div><div><br></div>

<div>Lee</div><div><br clear="all">--------<br>Those who sacrifice liberty for security deserve neither<br>-- Benjamin Franklin<br>
<br><br><div class="gmail_quote">On 29 June 2010 15:11,  <span dir="ltr">&lt;<a href="mailto:yoshito_umaoka@us.ibm.com">yoshito_umaoka@us.ibm.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Yves Goergen &lt;<a href="mailto:nospam.list@unclassified.de">nospam.list@unclassified.de</a>&gt; wrote on 06/29/2010 09:27:01<br>
AM:<br>
<div class="im"><br>
&gt; Hi,<br>
&gt;<br>
&gt; I intend to use the tz database in my C# calendar application. Since I<br>
&gt; need a decent time zone support, I was pointed to this database from the<br>
&gt; MSDN forums. I now have a few questions regarding the file format of the<br>
&gt; text files.<br>
&gt;<br>
&gt; A day specification of &quot;Sun&gt;=1&quot; or &quot;Sun&gt;=8&quot; should be clear, I interpret<br>
&gt; this as the first/second Sunday in a month. But what weekday and week is<br>
&gt; &quot;Sun&gt;=25&quot; or &quot;Sun&gt;=2&quot;?<br>
&gt;<br>
&gt; How is the Zone field &quot;[UNTIL]&quot; to be understood exactly? Is it<br>
including<br>
&gt; or excluding the given time? What does &quot;1990&quot; mean, is it until and<br>
&gt; inclusive the whole year 1990, ie /1990-12-31T23:59:59 or is it<br>
something<br>
&gt; around 1990-01-01?<br>
&gt;<br>
&gt; What does the time specification &quot;2:00s&quot; mean? I&#39;ve seen it several<br>
times<br>
&gt; but couldn&#39;t make any sense of it.<br>
<br>
</div>These are well defined in the man page of zic.<br>
Download tzcodeC.tar.gz (C is a version such as 2010j) from<br>
<a href="ftp://elsie.nci.nih.gov/pub/" target="_blank">ftp://elsie.nci.nih.gov/pub/</a> and read docs included in the distribution.<br>
<div class="im"><br>
&gt;<br>
&gt; Are all rules in the text files sorted ascending by time (&quot;FROM&quot; year)?<br>
&gt; That would simplify the processing because in order to convert them into<br>
&gt; .NET framework structures I need pairs of DST start and end rules<br>
together<br>
&gt; for a range of years, and thus need to resolve the overlapping rule<br>
&gt; definitions.<br>
&gt;<br>
<br>
</div>Strictly speaking, you cannot expect DST start and end are always paired<br>
within a single year. Also, some rules used by the tzdatabasemight not be<br>
directly mapped to Windows/.NET style rule. I&#39;m working for ICU project (<br>
<a href="http://icu-project.org/" target="_blank">http://icu-project.org/</a>) and implemented a time zone API which extracts<br>
DST start/end rules around the given time in Windows/iCalendar style rule<br>
format:<br>
<br>
C++<br>
<a href="http://icu-project.org/apiref/icu4c/classBasicTimeZone.html#8ec554fc7301450deeb584a782469f54" target="_blank">http://icu-project.org/apiref/icu4c/classBasicTimeZone.html#8ec554fc7301450deeb584a782469f54</a><br>
Java<br>
<a href="http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/BasicTimeZone.html#getSimpleTimeZoneRulesNear%28long%29" target="_blank">http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/BasicTimeZone.html#getSimpleTimeZoneRulesNear%28long%29</a><br>


<br>
-Yoshito<br>
<br>
</blockquote></div><br></div>