hivedav

A curlable free/busy scheduler with CalDAV integration
git clone https://git.in0rdr.ch/hivedav.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

tzdb.go (5443B)


      1 package tzdb
      2 
      3 func GetTzdbFromLocation(l string) string {
      4 	return locationTzdb[l]
      5 }
      6 
      7 // This list of locations to region mappings was generated using a modified
      8 // version of https://go.dev/src/time/genzabbrs.go
      9 var locationTzdb = map[string]string{
     10 	"+00": "Africa/Casablanca",
     11 	//"+00":   "Atlantic/Azores",
     12 	"+01": "Africa/Casablanca",
     13 	"-01": "Atlantic/Azores",
     14 	//"-01":   "Atlantic/Cape_Verde",
     15 	"-02": "America/Godthab",
     16 	//"-02":   "America/Miquelon",
     17 	//"-02":   "Etc/GMT+2",
     18 	"+0330": "Asia/Tehran",
     19 	"-03":   "America/Araguaina",
     20 	//"-03":   "America/Asuncion",
     21 	//"-03":   "America/Bahia",
     22 	//"-03":   "America/Buenos_Aires",
     23 	//"-03":   "America/Cayenne",
     24 	//"-03":   "America/Godthab",
     25 	//"-03":   "America/Miquelon",
     26 	//"-03":   "America/Montevideo",
     27 	//"-03":   "America/Punta_Arenas",
     28 	//"-03":   "America/Santiago",
     29 	//"-03":   "America/Sao_Paulo",
     30 	"+03": "Asia/Amman",
     31 	//"+03":   "Asia/Baghdad",
     32 	//"+03":   "Asia/Damascus",
     33 	//"+03":   "Asia/Riyadh",
     34 	//"+03":   "Europe/Istanbul",
     35 	//"+03":   "Europe/Minsk",
     36 	"+0430": "Asia/Kabul",
     37 	"-04":   "America/Asuncion",
     38 	//"-04":   "America/Caracas",
     39 	//"-04":   "America/Cuiaba",
     40 	//"-04":   "America/La_Paz",
     41 	//"-04":   "America/Santiago",
     42 	"+04": "Asia/Baku",
     43 	//"+04":   "Asia/Dubai",
     44 	//"+04":   "Asia/Tbilisi",
     45 	//"+04":   "Asia/Yerevan",
     46 	//"+04":   "Europe/Astrakhan",
     47 	//"+04":   "Europe/Samara",
     48 	//"+04":   "Europe/Saratov",
     49 	//"+04":   "Indian/Mauritius",
     50 	"+0530": "Asia/Colombo",
     51 	"+0545": "Asia/Katmandu",
     52 	"-05":   "Pacific/Easter",
     53 	//"-05":   "America/Bogota",
     54 	"+05": "Asia/Qyzylorda",
     55 	//"+05":   "Asia/Tashkent",
     56 	//"+05":   "Asia/Yekaterinburg",
     57 	"+0630": "Asia/Rangoon",
     58 	"+06":   "Asia/Almaty",
     59 	//"+06":   "Asia/Dhaka",
     60 	//"+06":   "Asia/Omsk",
     61 	"-06": "Pacific/Easter",
     62 	"+07": "Asia/Bangkok",
     63 	//"+07":   "Asia/Barnaul",
     64 	//"+07":   "Asia/Hovd",
     65 	//"+07":   "Asia/Krasnoyarsk",
     66 	//"+07":   "Asia/Novosibirsk",
     67 	//"+07":   "Asia/Tomsk",
     68 	"+0845": "Australia/Eucla",
     69 	"+08":   "Asia/Irkutsk",
     70 	//"+08":   "Asia/Singapore",
     71 	//"+08":   "Asia/Ulaanbaatar",
     72 	"-08":   "Etc/GMT+8",
     73 	"-0930": "Pacific/Marquesas",
     74 	"+09":   "Asia/Chita",
     75 	//"+09":   "Asia/Yakutsk",
     76 	"-09":   "Etc/GMT+9",
     77 	"+1030": "Australia/Lord_Howe",
     78 	"+10":   "Asia/Vladivostok",
     79 	//"+10":   "Pacific/Port_Moresby",
     80 	"+11": "Asia/Magadan",
     81 	//"+11":   "Asia/Sakhalin",
     82 	//"+11":   "Asia/Srednekolymsk",
     83 	//"+11":   "Australia/Lord_Howe",
     84 	//"+11":   "Pacific/Bougainville",
     85 	//"+11":   "Pacific/Guadalcanal",
     86 	//"+11":   "Pacific/Norfolk",
     87 	"-11":   "Etc/GMT+11",
     88 	"+1245": "Pacific/Chatham",
     89 	"+12":   "Asia/Kamchatka",
     90 	//"+12":   "Etc/GMT-12",
     91 	//"+12":   "Pacific/Fiji",
     92 	//"+12":   "Pacific/Norfolk",
     93 	"-12":   "Etc/GMT+12",
     94 	"+1345": "Pacific/Chatham",
     95 	"+13":   "Etc/GMT-13",
     96 	//"+13":   "Pacific/Apia",
     97 	//"+13":   "Pacific/Tongatapu",
     98 	"+14":  "Pacific/Kiritimati",
     99 	"ACDT": "Australia/Adelaide",
    100 	"ACST": "Australia/Adelaide",
    101 	//"ACST":  "Australia/Darwin",
    102 	"ADT":  "America/Halifax",
    103 	"AEDT": "Australia/Hobart",
    104 	//"AEDT":  "Australia/Sydney",
    105 	"AEST": "Australia/Brisbane",
    106 	//"AEST":  "Australia/Hobart",
    107 	//"AEST":  "Australia/Sydney",
    108 	"AKDT": "America/Anchorage",
    109 	"AKST": "America/Anchorage",
    110 	"AST":  "America/Halifax",
    111 	"AWST": "Australia/Perth",
    112 	"BST":  "Europe/London",
    113 	"CAT":  "Africa/Juba",
    114 	//"CAT":   "Africa/Khartoum",
    115 	//"CAT":   "Africa/Windhoek",
    116 	"CDT": "America/Chicago",
    117 	//"CDT":   "America/Havana",
    118 	"CEST": "Europe/Berlin",
    119 	//"CEST":  "Europe/Budapest",
    120 	//"CEST":  "Europe/Paris",
    121 	//"CEST":  "Europe/Warsaw",
    122 	"CET": "Europe/Berlin",
    123 	//"CET":   "Europe/Budapest",
    124 	//"CET":   "Europe/Paris",
    125 	//"CET":   "Europe/Warsaw",
    126 	"CST": "America/Chicago",
    127 	//"CST":   "America/Guatemala",
    128 	//"CST":   "America/Havana",
    129 	//"CST":   "America/Mexico_City",
    130 	//"CST":   "America/Regina",
    131 	//"CST":   "Asia/Shanghai",
    132 	//"CST":   "Asia/Taipei",
    133 	"EAT": "Africa/Nairobi",
    134 	"EDT": "America/Grand_Turk",
    135 	//"EDT":   "America/Indianapolis",
    136 	//"EDT":   "America/New_York",
    137 	//"EDT":   "America/Port-au-Prince",
    138 	"EEST": "Africa/Cairo",
    139 	//"EEST":  "Asia/Beirut",
    140 	//"EEST":  "Asia/Hebron",
    141 	//"EEST":  "Europe/Bucharest",
    142 	//"EEST":  "Europe/Chisinau",
    143 	//"EEST":  "Europe/Kiev",
    144 	"EET": "Africa/Cairo",
    145 	//"EET":   "Africa/Tripoli",
    146 	//"EET":   "Asia/Beirut",
    147 	//"EET":   "Asia/Hebron",
    148 	//"EET":   "Europe/Bucharest",
    149 	//"EET":   "Europe/Chisinau",
    150 	//"EET":   "Europe/Kaliningrad",
    151 	//"EET":   "Europe/Kiev",
    152 	//"EST":   "America/Cancun",
    153 	//"EST":   "America/Grand_Turk",
    154 	//"EST":   "America/Indianapolis",
    155 	//"EST":   "America/New_York",
    156 	//"EST":   "America/Port-au-Prince",
    157 	"GMT": "Europe/London",
    158 	//"GMT":   "Africa/Sao_Tome",
    159 	//"GMT":   "Atlantic/Reykjavik",
    160 	"HDT": "America/Adak",
    161 	"HST": "America/Adak",
    162 	//"HST":   "Pacific/Honolulu",
    163 	"IDT": "Asia/Jerusalem",
    164 	"IST": "Asia/Calcutta",
    165 	//"IST":   "Asia/Jerusalem",
    166 	"JST": "Asia/Tokyo",
    167 	"KST": "Asia/Pyongyang",
    168 	//"KST":   "Asia/Seoul",
    169 	"MDT": "America/Denver",
    170 	"MSK": "Europe/Moscow",
    171 	//"MSK":   "Europe/Volgograd",
    172 	"MST": "America/Denver",
    173 	//"MST":   "America/Mazatlan",
    174 	//"MST":   "America/Phoenix",
    175 	//"MST":   "America/Whitehorse",
    176 	"NDT":  "America/St_Johns",
    177 	"NST":  "America/St_Johns",
    178 	"NZDT": "Pacific/Auckland",
    179 	"NZST": "Pacific/Auckland",
    180 	"PDT":  "America/Los_Angeles",
    181 	//"PDT":   "America/Tijuana",
    182 	"PKT": "Asia/Karachi",
    183 	"PST": "America/Los_Angeles",
    184 	//"PST":   "America/Tijuana",
    185 	"SAST": "Africa/Johannesburg",
    186 	"UTC":  "Etc/UTC",
    187 	"WAT":  "Africa/Lagos",
    188 }