pike.git
/
lib
/
modules
/
Calendar.pmod
/
TZnames.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Calendar.pmod/TZnames.pmod:14:
//! used to loop over to get all the region-based //! timezones. //! //! It looks like this: //! <pre> //! ([ "America": ({ "Los_Angeles", "Chicago", <i>[...]</i> }), //! "Europe": ({ "Stockholm", <i>[...]</i> }), //! <i>[...]</i> }), //! </pre> //!
-
//!
note:
-
//!
Loading
all the timezones can take some
time, since
-
//! they are generated and compiled on the fly.
+
//!
Please
note
that
loading
all the timezones can take some
+
//!
time, since
they are generated and compiled on the fly.
mapping zones= ([ "America": ({"Scoresbysund","Godthab","Thule","New_York","Chicago", "Denver","Los_Angeles","Juneau","Yakutat","Anchorage", "Nome","Adak","Phoenix","Boise","Indianapolis", "Indiana/Marengo","Indiana/Knox","Indiana/Vevay", "Louisville","Detroit","Menominee","St_Johns","Goose_Bay", "Halifax","Glace_Bay","Montreal","Thunder_Bay","Nipigon", "Rainy_River","Winnipeg","Regina","Swift_Current",
pike.git/lib/modules/Calendar.pmod/TZnames.pmod:110:
//! This mapping is used to look up abbreviation //! to the possible regional zones. //! //! It looks like this: //! <pre> //! ([ "CET": ({ "Europe/Stockholm", <i>[...]</i> }), //! "CST": ({ "America/Chicago", "Australia/Adelaide", <i>[...]</i> }), //! <i>[...]</i> }), //! </pre> //!
-
//!
note:
-
//!
Just because it's noted "CST" doesn't mean it's a
+
//!
Note
this:
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. //! //! 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.
-
+
//!
+
//! The <ref>YMD.parse</ref> functions can handle timezone abbreviations
+
//! by guessing.
mapping abbr2zones= ([ "ACST": ({"America/Porto_Acre"}), "ACT": ({"America/Porto_Acre"}), "ADDT": ({"America/Pangnirtung"}), "ADMT": ({"Africa/Asmera", "Africa/Addis_Ababa"}), "ADT": ({"Atlantic/Bermuda", "Asia/Baghdad", "America/Thule", "America/Goose_Bay", "America/Halifax", "America/Glace_Bay", "America/Pangnirtung", "America/Barbados", "America/Martinique"}),