Branch: Tag:

2000-08-02

2000-08-02 11:13:15 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

...

Rev: lib/modules/Calendar.pmod/TZnames.pmod:1.2
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.4

2090:   <module name='TZnames'>   <doc>   <text> + <p>This module contains listnings of available timezones, + in some different ways + </p> +    <p>This module is a mapping of the names of   all the geographical (political)   based timezones. It looks mainly like
2106:   <p>The Posix and standard timezones (like CET, PST8PDT, etc)   are not listed.</p>   </text> + <group><note/><text> + <p>Loading all the timezones can take some time, since + they are generated and compiled on the fly. + Just because it's noted "CST" doesn't mean it's a + unique timezone. There is about 7 *different* timezones that + uses "CST" as abbreviation; not at the same time, + though, so the DWIM routines checks this before + it's satisfied. Same with some other timezones.</p>    -  + <p>For most timezones, there is a number of region timezones that for the + given time are equal. This is because region timezones include rules + about local summer time shifts and possible historic shifts.</p> + </text></group> +  +  +  +    </doc> -  + <docgroup homogen-name='abbr2zones' homogen-type='constant'> + <constant name='abbr2zones'><typevalue> +  <mapping><indextype><string/></indextype> +  <valuetype> +  <array><valuetype><string/></valuetype></array></valuetype></mapping></typevalue> + </constant><doc> + <text> + <p>This mapping is used to look up abbreviation + to the possible regional zones.</p> +  + <p>It looks like this: + <pre> + ([ "CET": ({ "Europe/Stockholm", &lt;i&gt;[...]&lt;/i&gt; }), +  "CST": ({ "America/Chicago", "Australia/Adelaide", &lt;i&gt;[...]&lt;/i&gt; }), +  &lt;i&gt;[...]&lt;/i&gt; }), + </pre> + </p> + </text> +  + </doc> + </docgroup> + <docgroup homogen-name='zones' homogen-type='constant'> + <constant name='zones'><typevalue> +  <mapping><indextype><string/></indextype> +  <valuetype> +  <array><valuetype><string/></valuetype></array></valuetype></mapping></typevalue> + </constant><doc> + <text> + <p>This constant is a mapping that can be + used to loop over to get all the region-based + timezones.</p> +  + <p>It looks like this: + <pre> + ([ "America": ({ "Los_Angeles", "Chicago", &lt;i&gt;[...]&lt;/i&gt; }), +  "Europe": ({ "Stockholm", &lt;i&gt;[...]&lt;/i&gt; }), +  &lt;i&gt;[...]&lt;/i&gt; }), + </pre> + </p> + </text> +  + </doc> + </docgroup>   </module>   <module name='Time'>   <doc>