Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.squarespace.cldr.dates._CalendarFormatter_root Maven / Gradle / Ivy
//
//
// AUTO-GENERATED CLASS - DO NOT EDIT
//
//
package com.squarespace.cldr.dates;
import com.squarespace.cldr.CLDR;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.ZonedDateTime;
import java.util.HashMap;
/**
* Locale "root"
* See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
*/
public class _CalendarFormatter_root extends CalendarFormatterBase {
public _CalendarFormatter_root() {
this.bundleId = CLDR.Locale.root;
this.firstDay = 1;
this.minDays = 1;
this.eras = new FieldVariants(
new String[] {"BCE", "CE"},
new String[] {"BCE", "CE"},
new String[] {},
new String[] {"BCE", "CE"});
this.quartersFormat = new FieldVariants(
new String[] {"Q1", "Q2", "Q3", "Q4"},
new String[] {"1", "2", "3", "4"},
new String[] {},
new String[] {"Q1", "Q2", "Q3", "Q4"});
this.quartersStandalone = new FieldVariants(
new String[] {"Q1", "Q2", "Q3", "Q4"},
new String[] {"1", "2", "3", "4"},
new String[] {},
new String[] {"Q1", "Q2", "Q3", "Q4"});
this.monthsFormat = new FieldVariants(
new String[] {"M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"},
new String[] {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
new String[] {},
new String[] {"M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"});
this.monthsStandalone = new FieldVariants(
new String[] {"M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"},
new String[] {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
new String[] {},
new String[] {"M01", "M02", "M03", "M04", "M05", "M06", "M07", "M08", "M09", "M10", "M11", "M12"});
this.weekdaysFormat = new FieldVariants(
new String[] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"},
new String[] {"S", "M", "T", "W", "T", "F", "S"},
new String[] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"},
new String[] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"});
this.weekdaysStandalone = new FieldVariants(
new String[] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"},
new String[] {"S", "M", "T", "W", "T", "F", "S"},
new String[] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"},
new String[] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"});
this.dayPeriodsFormat = new FieldVariants(
new String[] {"AM", "PM"},
new String[] {"AM", "PM"},
new String[] {},
new String[] {"AM", "PM"});
this.dayPeriodsStandalone = new FieldVariants(
new String[] {"AM", "PM"},
new String[] {"AM", "PM"},
new String[] {},
new String[] {"AM", "PM"});
this.exemplarCities = new HashMap() { {
put("America/Adak", "Adak");
put("America/Anchorage", "Anchorage");
put("America/Anguilla", "Anguilla");
put("America/Antigua", "Antigua");
put("America/Araguaina", "Araguaina");
put("America/Argentina/Rio_Gallegos", "Rio Gallegos");
put("America/Argentina/San_Juan", "San Juan");
put("America/Argentina/Ushuaia", "Ushuaia");
put("America/Argentina/La_Rioja", "La Rioja");
put("America/Argentina/San_Luis", "San Luis");
put("America/Argentina/Salta", "Salta");
put("America/Argentina/Tucuman", "Tucuman");
put("America/Aruba", "Aruba");
put("America/Asuncion", "Asuncion");
put("America/Bahia", "Bahia");
put("America/Bahia_Banderas", "Bahia Banderas");
put("America/Barbados", "Barbados");
put("America/Belem", "Belem");
put("America/Belize", "Belize");
put("America/Blanc-Sablon", "Blanc-Sablon");
put("America/Boa_Vista", "Boa Vista");
put("America/Bogota", "Bogota");
put("America/Boise", "Boise");
put("America/Buenos_Aires", "Buenos Aires");
put("America/Cambridge_Bay", "Cambridge Bay");
put("America/Campo_Grande", "Campo Grande");
put("America/Cancun", "Cancun");
put("America/Caracas", "Caracas");
put("America/Catamarca", "Catamarca");
put("America/Cayenne", "Cayenne");
put("America/Cayman", "Cayman");
put("America/Chicago", "Chicago");
put("America/Chihuahua", "Chihuahua");
put("America/Coral_Harbour", "Atikokan");
put("America/Cordoba", "Cordoba");
put("America/Costa_Rica", "Costa Rica");
put("America/Creston", "Creston");
put("America/Cuiaba", "Cuiaba");
put("America/Curacao", "Curacao");
put("America/Danmarkshavn", "Danmarkshavn");
put("America/Dawson", "Dawson");
put("America/Dawson_Creek", "Dawson Creek");
put("America/Denver", "Denver");
put("America/Detroit", "Detroit");
put("America/Dominica", "Dominica");
put("America/Edmonton", "Edmonton");
put("America/Eirunepe", "Eirunepe");
put("America/El_Salvador", "El Salvador");
put("America/Fort_Nelson", "Fort Nelson");
put("America/Fortaleza", "Fortaleza");
put("America/Glace_Bay", "Glace Bay");
put("America/Godthab", "Nuuk");
put("America/Goose_Bay", "Goose Bay");
put("America/Grand_Turk", "Grand Turk");
put("America/Grenada", "Grenada");
put("America/Guadeloupe", "Guadeloupe");
put("America/Guatemala", "Guatemala");
put("America/Guayaquil", "Guayaquil");
put("America/Guyana", "Guyana");
put("America/Halifax", "Halifax");
put("America/Havana", "Havana");
put("America/Hermosillo", "Hermosillo");
put("America/Indiana/Vincennes", "Vincennes, Indiana");
put("America/Indiana/Petersburg", "Petersburg, Indiana");
put("America/Indiana/Tell_City", "Tell City, Indiana");
put("America/Indiana/Knox", "Knox, Indiana");
put("America/Indiana/Winamac", "Winamac, Indiana");
put("America/Indiana/Marengo", "Marengo, Indiana");
put("America/Indiana/Vevay", "Vevay, Indiana");
put("America/Indianapolis", "Indianapolis");
put("America/Inuvik", "Inuvik");
put("America/Iqaluit", "Iqaluit");
put("America/Jamaica", "Jamaica");
put("America/Jujuy", "Jujuy");
put("America/Juneau", "Juneau");
put("America/Kentucky/Monticello", "Monticello, Kentucky");
put("America/Kralendijk", "Kralendijk");
put("America/La_Paz", "La Paz");
put("America/Lima", "Lima");
put("America/Los_Angeles", "Los Angeles");
put("America/Louisville", "Louisville");
put("America/Lower_Princes", "Lower Prince’s Quarter");
put("America/Maceio", "Maceio");
put("America/Managua", "Managua");
put("America/Manaus", "Manaus");
put("America/Marigot", "Marigot");
put("America/Martinique", "Martinique");
put("America/Matamoros", "Matamoros");
put("America/Mazatlan", "Mazatlan");
put("America/Mendoza", "Mendoza");
put("America/Menominee", "Menominee");
put("America/Merida", "Merida");
put("America/Metlakatla", "Metlakatla");
put("America/Mexico_City", "Mexico City");
put("America/Miquelon", "Miquelon");
put("America/Moncton", "Moncton");
put("America/Monterrey", "Monterrey");
put("America/Montevideo", "Montevideo");
put("America/Montserrat", "Montserrat");
put("America/Nassau", "Nassau");
put("America/New_York", "New York");
put("America/Nipigon", "Nipigon");
put("America/Nome", "Nome");
put("America/Noronha", "Noronha");
put("America/North_Dakota/Beulah", "Beulah, North Dakota");
put("America/North_Dakota/New_Salem", "New Salem, North Dakota");
put("America/North_Dakota/Center", "Center, North Dakota");
put("America/Ojinaga", "Ojinaga");
put("America/Panama", "Panama");
put("America/Pangnirtung", "Pangnirtung");
put("America/Paramaribo", "Paramaribo");
put("America/Phoenix", "Phoenix");
put("America/Port-au-Prince", "Port-au-Prince");
put("America/Port_of_Spain", "Port of Spain");
put("America/Porto_Velho", "Porto Velho");
put("America/Puerto_Rico", "Puerto Rico");
put("America/Rainy_River", "Rainy River");
put("America/Rankin_Inlet", "Rankin Inlet");
put("America/Recife", "Recife");
put("America/Regina", "Regina");
put("America/Resolute", "Resolute");
put("America/Rio_Branco", "Rio Branco");
put("America/Santarem", "Santarem");
put("America/Santiago", "Santiago");
put("America/Santo_Domingo", "Santo Domingo");
put("America/Sao_Paulo", "Sao Paulo");
put("America/Scoresbysund", "Ittoqqortoormiit");
put("America/Sitka", "Sitka");
put("America/St_Barthelemy", "St. Barthelemy");
put("America/St_Johns", "St. John’s");
put("America/St_Kitts", "St. Kitts");
put("America/St_Lucia", "St. Lucia");
put("America/St_Thomas", "St. Thomas");
put("America/St_Vincent", "St. Vincent");
put("America/Swift_Current", "Swift Current");
put("America/Tegucigalpa", "Tegucigalpa");
put("America/Thule", "Thule");
put("America/Thunder_Bay", "Thunder Bay");
put("America/Tijuana", "Tijuana");
put("America/Toronto", "Toronto");
put("America/Tortola", "Tortola");
put("America/Vancouver", "Vancouver");
put("America/Whitehorse", "Whitehorse");
put("America/Winnipeg", "Winnipeg");
put("America/Yakutat", "Yakutat");
put("America/Yellowknife", "Yellowknife");
put("Atlantic/Azores", "Azores");
put("Atlantic/Bermuda", "Bermuda");
put("Atlantic/Canary", "Canary");
put("Atlantic/Cape_Verde", "Cape Verde");
put("Atlantic/Faeroe", "Faroe");
put("Atlantic/Madeira", "Madeira");
put("Atlantic/Reykjavik", "Reykjavik");
put("Atlantic/South_Georgia", "South Georgia");
put("Atlantic/St_Helena", "St. Helena");
put("Atlantic/Stanley", "Stanley");
put("Europe/Amsterdam", "Amsterdam");
put("Europe/Andorra", "Andorra");
put("Europe/Astrakhan", "Astrakhan");
put("Europe/Athens", "Athens");
put("Europe/Belgrade", "Belgrade");
put("Europe/Berlin", "Berlin");
put("Europe/Bratislava", "Bratislava");
put("Europe/Brussels", "Brussels");
put("Europe/Bucharest", "Bucharest");
put("Europe/Budapest", "Budapest");
put("Europe/Busingen", "Busingen");
put("Europe/Chisinau", "Chisinau");
put("Europe/Copenhagen", "Copenhagen");
put("Europe/Dublin", "Dublin");
put("Europe/Gibraltar", "Gibraltar");
put("Europe/Guernsey", "Guernsey");
put("Europe/Helsinki", "Helsinki");
put("Europe/Isle_of_Man", "Isle of Man");
put("Europe/Istanbul", "Istanbul");
put("Europe/Jersey", "Jersey");
put("Europe/Kaliningrad", "Kaliningrad");
put("Europe/Kiev", "Kiev");
put("Europe/Kirov", "Kirov");
put("Europe/Lisbon", "Lisbon");
put("Europe/Ljubljana", "Ljubljana");
put("Europe/London", "London");
put("Europe/Luxembourg", "Luxembourg");
put("Europe/Madrid", "Madrid");
put("Europe/Malta", "Malta");
put("Europe/Mariehamn", "Mariehamn");
put("Europe/Minsk", "Minsk");
put("Europe/Monaco", "Monaco");
put("Europe/Moscow", "Moscow");
put("Europe/Oslo", "Oslo");
put("Europe/Paris", "Paris");
put("Europe/Podgorica", "Podgorica");
put("Europe/Prague", "Prague");
put("Europe/Riga", "Riga");
put("Europe/Rome", "Rome");
put("Europe/Samara", "Samara");
put("Europe/San_Marino", "San Marino");
put("Europe/Sarajevo", "Sarajevo");
put("Europe/Simferopol", "Simferopol");
put("Europe/Skopje", "Skopje");
put("Europe/Sofia", "Sofia");
put("Europe/Stockholm", "Stockholm");
put("Europe/Tallinn", "Tallinn");
put("Europe/Tirane", "Tirane");
put("Europe/Ulyanovsk", "Ulyanovsk");
put("Europe/Uzhgorod", "Uzhgorod");
put("Europe/Vaduz", "Vaduz");
put("Europe/Vatican", "Vatican");
put("Europe/Vienna", "Vienna");
put("Europe/Vilnius", "Vilnius");
put("Europe/Volgograd", "Volgograd");
put("Europe/Warsaw", "Warsaw");
put("Europe/Zagreb", "Zagreb");
put("Europe/Zaporozhye", "Zaporozhye");
put("Europe/Zurich", "Zurich");
put("Africa/Abidjan", "Abidjan");
put("Africa/Accra", "Accra");
put("Africa/Addis_Ababa", "Addis Ababa");
put("Africa/Algiers", "Algiers");
put("Africa/Asmera", "Asmara");
put("Africa/Bamako", "Bamako");
put("Africa/Bangui", "Bangui");
put("Africa/Banjul", "Banjul");
put("Africa/Bissau", "Bissau");
put("Africa/Blantyre", "Blantyre");
put("Africa/Brazzaville", "Brazzaville");
put("Africa/Bujumbura", "Bujumbura");
put("Africa/Cairo", "Cairo");
put("Africa/Casablanca", "Casablanca");
put("Africa/Ceuta", "Ceuta");
put("Africa/Conakry", "Conakry");
put("Africa/Dakar", "Dakar");
put("Africa/Dar_es_Salaam", "Dar es Salaam");
put("Africa/Djibouti", "Djibouti");
put("Africa/Douala", "Douala");
put("Africa/El_Aaiun", "El Aaiun");
put("Africa/Freetown", "Freetown");
put("Africa/Gaborone", "Gaborone");
put("Africa/Harare", "Harare");
put("Africa/Johannesburg", "Johannesburg");
put("Africa/Juba", "Juba");
put("Africa/Kampala", "Kampala");
put("Africa/Khartoum", "Khartoum");
put("Africa/Kigali", "Kigali");
put("Africa/Kinshasa", "Kinshasa");
put("Africa/Lagos", "Lagos");
put("Africa/Libreville", "Libreville");
put("Africa/Lome", "Lome");
put("Africa/Luanda", "Luanda");
put("Africa/Lubumbashi", "Lubumbashi");
put("Africa/Lusaka", "Lusaka");
put("Africa/Malabo", "Malabo");
put("Africa/Maputo", "Maputo");
put("Africa/Maseru", "Maseru");
put("Africa/Mbabane", "Mbabane");
put("Africa/Mogadishu", "Mogadishu");
put("Africa/Monrovia", "Monrovia");
put("Africa/Nairobi", "Nairobi");
put("Africa/Ndjamena", "Ndjamena");
put("Africa/Niamey", "Niamey");
put("Africa/Nouakchott", "Nouakchott");
put("Africa/Ouagadougou", "Ouagadougou");
put("Africa/Porto-Novo", "Porto-Novo");
put("Africa/Sao_Tome", "Sao Tome");
put("Africa/Tripoli", "Tripoli");
put("Africa/Tunis", "Tunis");
put("Africa/Windhoek", "Windhoek");
put("Asia/Aden", "Aden");
put("Asia/Almaty", "Almaty");
put("Asia/Amman", "Amman");
put("Asia/Anadyr", "Anadyr");
put("Asia/Aqtau", "Aqtau");
put("Asia/Aqtobe", "Aqtobe");
put("Asia/Ashgabat", "Ashgabat");
put("Asia/Baghdad", "Baghdad");
put("Asia/Bahrain", "Bahrain");
put("Asia/Baku", "Baku");
put("Asia/Bangkok", "Bangkok");
put("Asia/Barnaul", "Barnaul");
put("Asia/Beirut", "Beirut");
put("Asia/Bishkek", "Bishkek");
put("Asia/Brunei", "Brunei");
put("Asia/Calcutta", "Kolkata");
put("Asia/Chita", "Chita");
put("Asia/Choibalsan", "Choibalsan");
put("Asia/Colombo", "Colombo");
put("Asia/Damascus", "Damascus");
put("Asia/Dhaka", "Dhaka");
put("Asia/Dili", "Dili");
put("Asia/Dubai", "Dubai");
put("Asia/Dushanbe", "Dushanbe");
put("Asia/Gaza", "Gaza");
put("Asia/Hebron", "Hebron");
put("Asia/Hong_Kong", "Hong Kong");
put("Asia/Hovd", "Hovd");
put("Asia/Irkutsk", "Irkutsk");
put("Asia/Jakarta", "Jakarta");
put("Asia/Jayapura", "Jayapura");
put("Asia/Jerusalem", "Jerusalem");
put("Asia/Kabul", "Kabul");
put("Asia/Kamchatka", "Kamchatka");
put("Asia/Karachi", "Karachi");
put("Asia/Katmandu", "Kathmandu");
put("Asia/Khandyga", "Khandyga");
put("Asia/Krasnoyarsk", "Krasnoyarsk");
put("Asia/Kuala_Lumpur", "Kuala Lumpur");
put("Asia/Kuching", "Kuching");
put("Asia/Kuwait", "Kuwait");
put("Asia/Macau", "Macau");
put("Asia/Magadan", "Magadan");
put("Asia/Makassar", "Makassar");
put("Asia/Manila", "Manila");
put("Asia/Muscat", "Muscat");
put("Asia/Nicosia", "Nicosia");
put("Asia/Novokuznetsk", "Novokuznetsk");
put("Asia/Novosibirsk", "Novosibirsk");
put("Asia/Omsk", "Omsk");
put("Asia/Oral", "Oral");
put("Asia/Phnom_Penh", "Phnom Penh");
put("Asia/Pontianak", "Pontianak");
put("Asia/Pyongyang", "Pyongyang");
put("Asia/Qatar", "Qatar");
put("Asia/Qyzylorda", "Qyzylorda");
put("Asia/Rangoon", "Rangoon");
put("Asia/Riyadh", "Riyadh");
put("Asia/Saigon", "Ho Chi Minh");
put("Asia/Sakhalin", "Sakhalin");
put("Asia/Samarkand", "Samarkand");
put("Asia/Seoul", "Seoul");
put("Asia/Shanghai", "Shanghai");
put("Asia/Singapore", "Singapore");
put("Asia/Srednekolymsk", "Srednekolymsk");
put("Asia/Taipei", "Taipei");
put("Asia/Tashkent", "Tashkent");
put("Asia/Tbilisi", "Tbilisi");
put("Asia/Tehran", "Tehran");
put("Asia/Thimphu", "Thimphu");
put("Asia/Tokyo", "Tokyo");
put("Asia/Tomsk", "Tomsk");
put("Asia/Ulaanbaatar", "Ulaanbaatar");
put("Asia/Urumqi", "Urumqi");
put("Asia/Ust-Nera", "Ust-Nera");
put("Asia/Vientiane", "Vientiane");
put("Asia/Vladivostok", "Vladivostok");
put("Asia/Yakutsk", "Yakutsk");
put("Asia/Yekaterinburg", "Yekaterinburg");
put("Asia/Yerevan", "Yerevan");
put("Indian/Antananarivo", "Antananarivo");
put("Indian/Chagos", "Chagos");
put("Indian/Christmas", "Christmas");
put("Indian/Cocos", "Cocos");
put("Indian/Comoro", "Comoro");
put("Indian/Kerguelen", "Kerguelen");
put("Indian/Mahe", "Mahe");
put("Indian/Maldives", "Maldives");
put("Indian/Mauritius", "Mauritius");
put("Indian/Mayotte", "Mayotte");
put("Indian/Reunion", "Reunion");
put("Australia/Adelaide", "Adelaide");
put("Australia/Brisbane", "Brisbane");
put("Australia/Broken_Hill", "Broken Hill");
put("Australia/Currie", "Currie");
put("Australia/Darwin", "Darwin");
put("Australia/Eucla", "Eucla");
put("Australia/Hobart", "Hobart");
put("Australia/Lindeman", "Lindeman");
put("Australia/Lord_Howe", "Lord Howe");
put("Australia/Melbourne", "Melbourne");
put("Australia/Perth", "Perth");
put("Australia/Sydney", "Sydney");
put("Pacific/Apia", "Apia");
put("Pacific/Auckland", "Auckland");
put("Pacific/Bougainville", "Bougainville");
put("Pacific/Chatham", "Chatham");
put("Pacific/Easter", "Easter");
put("Pacific/Efate", "Efate");
put("Pacific/Enderbury", "Enderbury");
put("Pacific/Fakaofo", "Fakaofo");
put("Pacific/Fiji", "Fiji");
put("Pacific/Funafuti", "Funafuti");
put("Pacific/Galapagos", "Galapagos");
put("Pacific/Gambier", "Gambier");
put("Pacific/Guadalcanal", "Guadalcanal");
put("Pacific/Guam", "Guam");
put("Pacific/Honolulu", "Honolulu");
put("Pacific/Johnston", "Johnston");
put("Pacific/Kiritimati", "Kiritimati");
put("Pacific/Kosrae", "Kosrae");
put("Pacific/Kwajalein", "Kwajalein");
put("Pacific/Majuro", "Majuro");
put("Pacific/Marquesas", "Marquesas");
put("Pacific/Midway", "Midway");
put("Pacific/Nauru", "Nauru");
put("Pacific/Niue", "Niue");
put("Pacific/Norfolk", "Norfolk");
put("Pacific/Noumea", "Noumea");
put("Pacific/Pago_Pago", "Pago Pago");
put("Pacific/Palau", "Palau");
put("Pacific/Pitcairn", "Pitcairn");
put("Pacific/Ponape", "Pohnpei");
put("Pacific/Port_Moresby", "Port Moresby");
put("Pacific/Rarotonga", "Rarotonga");
put("Pacific/Saipan", "Saipan");
put("Pacific/Tahiti", "Tahiti");
put("Pacific/Tarawa", "Tarawa");
put("Pacific/Tongatapu", "Tongatapu");
put("Pacific/Truk", "Chuuk");
put("Pacific/Wake", "Wake");
put("Pacific/Wallis", "Wallis");
put("Arctic/Longyearbyen", "Longyearbyen");
put("Antarctica/Casey", "Casey");
put("Antarctica/Davis", "Davis");
put("Antarctica/DumontDUrville", "Dumont d’Urville");
put("Antarctica/Macquarie", "Macquarie");
put("Antarctica/Mawson", "Mawson");
put("Antarctica/McMurdo", "McMurdo");
put("Antarctica/Palmer", "Palmer");
put("Antarctica/Rothera", "Rothera");
put("Antarctica/Syowa", "Syowa");
put("Antarctica/Troll", "Troll");
put("Antarctica/Vostok", "Vostok");
put("Etc/GMT", "GMT");
put("Etc/GMT1", "GMT+1");
put("Etc/GMT10", "GMT+10");
put("Etc/GMT11", "GMT+11");
put("Etc/GMT12", "GMT+12");
put("Etc/GMT2", "GMT+2");
put("Etc/GMT3", "GMT+3");
put("Etc/GMT4", "GMT+4");
put("Etc/GMT5", "GMT+5");
put("Etc/GMT6", "GMT+6");
put("Etc/GMT7", "GMT+7");
put("Etc/GMT8", "GMT+8");
put("Etc/GMT9", "GMT+9");
put("Etc/GMT-1", "GMT-1");
put("Etc/GMT-10", "GMT-10");
put("Etc/GMT-11", "GMT-11");
put("Etc/GMT-12", "GMT-12");
put("Etc/GMT-13", "GMT-13");
put("Etc/GMT-14", "GMT-14");
put("Etc/GMT-2", "GMT-2");
put("Etc/GMT-3", "GMT-3");
put("Etc/GMT-4", "GMT-4");
put("Etc/GMT-5", "GMT-5");
put("Etc/GMT-6", "GMT-6");
put("Etc/GMT-7", "GMT-7");
put("Etc/GMT-8", "GMT-8");
put("Etc/GMT-9", "GMT-9");
put("Etc/UTC", "UTC");
put("Etc/Unknown", "Unknown");
} };
this.timezoneNames = new HashMap() { {
put("Etc/UTC", new TimeZoneNames("Etc/UTC", null,
new TimeZoneNames.Name(null, "UTC", null)));
} };
this.metazoneNames = new HashMap() { {
} };
}
@Override
public void formatDate(CalendarFormat type, ZonedDateTime d, StringBuilder b) {
if (type == null) {
return;
}
switch (type) {
case SHORT: {
// "y-MM-dd"
formatField(d, 'y', 1, b);
b.append("-");
formatField(d, 'M', 2, b);
b.append("-");
formatField(d, 'd', 2, b);
break;
}
case MEDIUM: {
// "y MMM d"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 3, b);
b.append(" ");
formatField(d, 'd', 1, b);
break;
}
case LONG: {
// "y MMMM d"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 4, b);
b.append(" ");
formatField(d, 'd', 1, b);
break;
}
case FULL: {
// "y MMMM d, EEEE"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 4, b);
b.append(" ");
formatField(d, 'd', 1, b);
b.append(", ");
formatField(d, 'E', 4, b);
break;
}
}
}
@Override
public void formatTime(CalendarFormat type, ZonedDateTime d, StringBuilder b) {
if (type == null) {
return;
}
switch (type) {
case SHORT: {
// "HH:mm"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
break;
}
case MEDIUM: {
// "HH:mm:ss"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
break;
}
case LONG: {
// "HH:mm:ss z"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
b.append(" ");
formatField(d, 'z', 1, b);
break;
}
case FULL: {
// "HH:mm:ss zzzz"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
b.append(" ");
formatField(d, 'z', 4, b);
break;
}
}
}
@Override
public void formatWrapped(CalendarFormat wrapperType, CalendarFormat dateType,
CalendarFormat timeType, String dateSkel, String timeSkel, ZonedDateTime d, StringBuilder b) {
switch (wrapperType) {
case SHORT:
case MEDIUM:
case LONG:
case FULL:
{
// "{1} {0}"
if (dateType != null) {
formatDate(dateType, d, b);
} else {
formatSkeleton(dateSkel, d, b);
}
b.append(" ");
if (timeType != null) {
formatTime(timeType, d, b);
} else {
formatSkeleton(timeSkel, d, b);
}
break;
}
}
}
@Override
public boolean formatSkeleton(String skeleton, ZonedDateTime d, StringBuilder b) {
if (skeleton == null) {
return false;
}
switch (skeleton) {
case "d": {
// Pattern: "d"
formatField(d, 'd', 1, b);
break;
}
case "E": {
// Pattern: "ccc"
formatField(d, 'c', 3, b);
break;
}
case "Ed": {
// Pattern: "d, E"
formatField(d, 'd', 1, b);
b.append(", ");
formatField(d, 'E', 1, b);
break;
}
case "Ehm": {
// Pattern: "E h:mm a"
formatField(d, 'E', 1, b);
b.append(" ");
formatField(d, 'h', 1, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(" ");
formatField(d, 'a', 1, b);
break;
}
case "EHm": {
// Pattern: "E HH:mm"
formatField(d, 'E', 1, b);
b.append(" ");
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
break;
}
case "Ehms": {
// Pattern: "E h:mm:ss a"
formatField(d, 'E', 1, b);
b.append(" ");
formatField(d, 'h', 1, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
b.append(" ");
formatField(d, 'a', 1, b);
break;
}
case "EHms": {
// Pattern: "E HH:mm:ss"
formatField(d, 'E', 1, b);
b.append(" ");
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
break;
}
case "Gy": {
// Pattern: "G y"
formatField(d, 'G', 1, b);
b.append(" ");
formatField(d, 'y', 1, b);
break;
}
case "GyMMM": {
// Pattern: "G y MMM"
formatField(d, 'G', 1, b);
b.append(" ");
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 3, b);
break;
}
case "GyMMMd": {
// Pattern: "G y MMM d"
formatField(d, 'G', 1, b);
b.append(" ");
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 3, b);
b.append(" ");
formatField(d, 'd', 1, b);
break;
}
case "GyMMMEd": {
// Pattern: "G y MMM d, E"
formatField(d, 'G', 1, b);
b.append(" ");
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 3, b);
b.append(" ");
formatField(d, 'd', 1, b);
b.append(", ");
formatField(d, 'E', 1, b);
break;
}
case "h": {
// Pattern: "h a"
formatField(d, 'h', 1, b);
b.append(" ");
formatField(d, 'a', 1, b);
break;
}
case "H": {
// Pattern: "HH"
formatField(d, 'H', 2, b);
break;
}
case "hm": {
// Pattern: "h:mm a"
formatField(d, 'h', 1, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(" ");
formatField(d, 'a', 1, b);
break;
}
case "Hm": {
// Pattern: "HH:mm"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
break;
}
case "hms": {
// Pattern: "h:mm:ss a"
formatField(d, 'h', 1, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
b.append(" ");
formatField(d, 'a', 1, b);
break;
}
case "Hms": {
// Pattern: "HH:mm:ss"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
break;
}
case "hmsv": {
// Pattern: "h:mm:ss a v"
formatField(d, 'h', 1, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
b.append(" ");
formatField(d, 'a', 1, b);
b.append(" ");
formatField(d, 'v', 1, b);
break;
}
case "Hmsv": {
// Pattern: "HH:mm:ss v"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
b.append(" ");
formatField(d, 'v', 1, b);
break;
}
case "hmv": {
// Pattern: "h:mm a v"
formatField(d, 'h', 1, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(" ");
formatField(d, 'a', 1, b);
b.append(" ");
formatField(d, 'v', 1, b);
break;
}
case "Hmv": {
// Pattern: "HH:mm v"
formatField(d, 'H', 2, b);
b.append(":");
formatField(d, 'm', 2, b);
b.append(" ");
formatField(d, 'v', 1, b);
break;
}
case "M": {
// Pattern: "L"
formatField(d, 'L', 1, b);
break;
}
case "Md": {
// Pattern: "MM-dd"
formatField(d, 'M', 2, b);
b.append("-");
formatField(d, 'd', 2, b);
break;
}
case "MEd": {
// Pattern: "MM-dd, E"
formatField(d, 'M', 2, b);
b.append("-");
formatField(d, 'd', 2, b);
b.append(", ");
formatField(d, 'E', 1, b);
break;
}
case "MMM": {
// Pattern: "LLL"
formatField(d, 'L', 3, b);
break;
}
case "MMMd": {
// Pattern: "MMM d"
formatField(d, 'M', 3, b);
b.append(" ");
formatField(d, 'd', 1, b);
break;
}
case "MMMEd": {
// Pattern: "MMM d, E"
formatField(d, 'M', 3, b);
b.append(" ");
formatField(d, 'd', 1, b);
b.append(", ");
formatField(d, 'E', 1, b);
break;
}
case "MMMMd": {
// Pattern: "MMMM d"
formatField(d, 'M', 4, b);
b.append(" ");
formatField(d, 'd', 1, b);
break;
}
case "MMMMW-count-other": {
// Pattern: "'week' W 'of' MMMM"
b.append("week ");
formatField(d, 'W', 1, b);
b.append(" of ");
formatField(d, 'M', 4, b);
break;
}
case "ms": {
// Pattern: "mm:ss"
formatField(d, 'm', 2, b);
b.append(":");
formatField(d, 's', 2, b);
break;
}
case "y": {
// Pattern: "y"
formatField(d, 'y', 1, b);
break;
}
case "yM": {
// Pattern: "y-MM"
formatField(d, 'y', 1, b);
b.append("-");
formatField(d, 'M', 2, b);
break;
}
case "yMd": {
// Pattern: "y-MM-dd"
formatField(d, 'y', 1, b);
b.append("-");
formatField(d, 'M', 2, b);
b.append("-");
formatField(d, 'd', 2, b);
break;
}
case "yMEd": {
// Pattern: "y-MM-dd, E"
formatField(d, 'y', 1, b);
b.append("-");
formatField(d, 'M', 2, b);
b.append("-");
formatField(d, 'd', 2, b);
b.append(", ");
formatField(d, 'E', 1, b);
break;
}
case "yMMM": {
// Pattern: "y MMM"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 3, b);
break;
}
case "yMMMd": {
// Pattern: "y MMM d"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 3, b);
b.append(" ");
formatField(d, 'd', 1, b);
break;
}
case "yMMMEd": {
// Pattern: "y MMM d, E"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 3, b);
b.append(" ");
formatField(d, 'd', 1, b);
b.append(", ");
formatField(d, 'E', 1, b);
break;
}
case "yMMMM": {
// Pattern: "y MMMM"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'M', 4, b);
break;
}
case "yQQQ": {
// Pattern: "y QQQ"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'Q', 3, b);
break;
}
case "yQQQQ": {
// Pattern: "y QQQQ"
formatField(d, 'y', 1, b);
b.append(" ");
formatField(d, 'Q', 4, b);
break;
}
case "yw-count-other": {
// Pattern: "'week' w 'of' y"
b.append("week ");
formatField(d, 'w', 1, b);
b.append(" of ");
formatField(d, 'y', 1, b);
break;
}
default: {
return false;
}
}
return true;
}
@Override
public void formatInterval(ZonedDateTime s, ZonedDateTime e, String k, DateTimeField f,
StringBuilder b) {
if (k != null && f != null) {
switch (k) {
case "d": {
switch (f) {
case DAY: {
// "d–"
formatField(s, 'd', 1, b);
b.append("–");
// "d"
formatField(e, 'd', 1, b);
return;
}
default: break;
}
break;
}
case "hm": {
switch (f) {
case AM_PM: {
// "h:mm a – "
formatField(s, 'h', 1, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append(" ");
formatField(s, 'a', 1, b);
b.append(" – ");
// "h:mm a"
formatField(e, 'h', 1, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'a', 1, b);
return;
}
case HOUR: {
// "h:mm–"
formatField(s, 'h', 1, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "h:mm a"
formatField(e, 'h', 1, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'a', 1, b);
return;
}
case MINUTE: {
// "h:mm–"
formatField(s, 'h', 1, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "h:mm a"
formatField(e, 'h', 1, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'a', 1, b);
return;
}
default: break;
}
break;
}
case "Hm": {
switch (f) {
case HOUR: {
// "HH:mm–"
formatField(s, 'H', 2, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "HH:mm"
formatField(e, 'H', 2, b);
b.append(":");
formatField(e, 'm', 2, b);
return;
}
case MINUTE: {
// "HH:mm–"
formatField(s, 'H', 2, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "HH:mm"
formatField(e, 'H', 2, b);
b.append(":");
formatField(e, 'm', 2, b);
return;
}
default: break;
}
break;
}
case "h": {
switch (f) {
case AM_PM: {
// "h a – "
formatField(s, 'h', 1, b);
b.append(" ");
formatField(s, 'a', 1, b);
b.append(" – ");
// "h a"
formatField(e, 'h', 1, b);
b.append(" ");
formatField(e, 'a', 1, b);
return;
}
case HOUR: {
// "h–"
formatField(s, 'h', 1, b);
b.append("–");
// "h a"
formatField(e, 'h', 1, b);
b.append(" ");
formatField(e, 'a', 1, b);
return;
}
default: break;
}
break;
}
case "H": {
switch (f) {
case HOUR: {
// "HH–"
formatField(s, 'H', 2, b);
b.append("–");
// "HH"
formatField(e, 'H', 2, b);
return;
}
default: break;
}
break;
}
case "yMMMEd": {
switch (f) {
case DAY: {
// "y MMM d, E – "
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "MMM d, E"
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
case YEAR: {
// "y MMM d, E – "
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "y MMM d, E"
formatField(e, 'y', 1, b);
b.append(" ");
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
case MONTH: {
// "y MMM d, E – "
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "MMM d, E"
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
default: break;
}
break;
}
case "yMEd": {
switch (f) {
case DAY: {
// "y-MM-dd, E – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "y-MM-dd, E"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
case YEAR: {
// "y-MM-dd, E – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "y-MM-dd, E"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
case MONTH: {
// "y-MM-dd, E – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "y-MM-dd, E"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
default: break;
}
break;
}
case "MMM": {
switch (f) {
case MONTH: {
// "LLL–"
formatField(s, 'L', 3, b);
b.append("–");
// "LLL"
formatField(e, 'L', 3, b);
return;
}
default: break;
}
break;
}
case "yMMM": {
switch (f) {
case YEAR: {
// "y MMM – "
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append(" – ");
// "y MMM"
formatField(e, 'y', 1, b);
b.append(" ");
formatField(e, 'M', 3, b);
return;
}
case MONTH: {
// "y MMM–"
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append("–");
// "MMM"
formatField(e, 'M', 3, b);
return;
}
default: break;
}
break;
}
case "M": {
switch (f) {
case MONTH: {
// "MM–"
formatField(s, 'M', 2, b);
b.append("–");
// "MM"
formatField(e, 'M', 2, b);
return;
}
default: break;
}
break;
}
case "MEd": {
switch (f) {
case DAY: {
// "MM-dd, E – "
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "MM-dd, E"
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
case MONTH: {
// "MM-dd, E – "
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "MM-dd, E"
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
default: break;
}
break;
}
case "MMMEd": {
switch (f) {
case DAY: {
// "MMM d, E – "
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "MMM d, E"
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
case MONTH: {
// "MMM d, E – "
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(", ");
formatField(s, 'E', 1, b);
b.append(" – ");
// "MMM d, E"
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
b.append(", ");
formatField(e, 'E', 1, b);
return;
}
default: break;
}
break;
}
case "hv": {
switch (f) {
case AM_PM: {
// "h a – "
formatField(s, 'h', 1, b);
b.append(" ");
formatField(s, 'a', 1, b);
b.append(" – ");
// "h a v"
formatField(e, 'h', 1, b);
b.append(" ");
formatField(e, 'a', 1, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
case HOUR: {
// "h–"
formatField(s, 'h', 1, b);
b.append("–");
// "h a v"
formatField(e, 'h', 1, b);
b.append(" ");
formatField(e, 'a', 1, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
default: break;
}
break;
}
case "Hv": {
switch (f) {
case HOUR: {
// "HH–"
formatField(s, 'H', 2, b);
b.append("–");
// "HH v"
formatField(e, 'H', 2, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
default: break;
}
break;
}
case "hmv": {
switch (f) {
case AM_PM: {
// "h:mm a – "
formatField(s, 'h', 1, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append(" ");
formatField(s, 'a', 1, b);
b.append(" – ");
// "h:mm a v"
formatField(e, 'h', 1, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'a', 1, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
case HOUR: {
// "h:mm–"
formatField(s, 'h', 1, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "h:mm a v"
formatField(e, 'h', 1, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'a', 1, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
case MINUTE: {
// "h:mm–"
formatField(s, 'h', 1, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "h:mm a v"
formatField(e, 'h', 1, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'a', 1, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
default: break;
}
break;
}
case "Hmv": {
switch (f) {
case HOUR: {
// "HH:mm–"
formatField(s, 'H', 2, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "HH:mm v"
formatField(e, 'H', 2, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
case MINUTE: {
// "HH:mm–"
formatField(s, 'H', 2, b);
b.append(":");
formatField(s, 'm', 2, b);
b.append("–");
// "HH:mm v"
formatField(e, 'H', 2, b);
b.append(":");
formatField(e, 'm', 2, b);
b.append(" ");
formatField(e, 'v', 1, b);
return;
}
default: break;
}
break;
}
case "yMd": {
switch (f) {
case DAY: {
// "y-MM-dd – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(" – ");
// "y-MM-dd"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
return;
}
case YEAR: {
// "y-MM-dd – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(" – ");
// "y-MM-dd"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
return;
}
case MONTH: {
// "y-MM-dd – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(" – ");
// "y-MM-dd"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
return;
}
default: break;
}
break;
}
case "MMMd": {
switch (f) {
case DAY: {
// "MMM d–"
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append("–");
// "d"
formatField(e, 'd', 1, b);
return;
}
case MONTH: {
// "MMM d – "
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(" – ");
// "MMM d"
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
return;
}
default: break;
}
break;
}
case "yM": {
switch (f) {
case YEAR: {
// "y-MM – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append(" – ");
// "y-MM"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
return;
}
case MONTH: {
// "y-MM – "
formatField(s, 'y', 1, b);
b.append("-");
formatField(s, 'M', 2, b);
b.append(" – ");
// "y-MM"
formatField(e, 'y', 1, b);
b.append("-");
formatField(e, 'M', 2, b);
return;
}
default: break;
}
break;
}
case "yMMMM": {
switch (f) {
case YEAR: {
// "y MMMM – "
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 4, b);
b.append(" – ");
// "y MMMM"
formatField(e, 'y', 1, b);
b.append(" ");
formatField(e, 'M', 4, b);
return;
}
case MONTH: {
// "y MMMM–"
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 4, b);
b.append("–");
// "MMMM"
formatField(e, 'M', 4, b);
return;
}
default: break;
}
break;
}
case "Md": {
switch (f) {
case DAY: {
// "MM-dd – "
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(" – ");
// "MM-dd"
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
return;
}
case MONTH: {
// "MM-dd – "
formatField(s, 'M', 2, b);
b.append("-");
formatField(s, 'd', 2, b);
b.append(" – ");
// "MM-dd"
formatField(e, 'M', 2, b);
b.append("-");
formatField(e, 'd', 2, b);
return;
}
default: break;
}
break;
}
case "y": {
switch (f) {
case YEAR: {
// "y–"
formatField(s, 'y', 1, b);
b.append("–");
// "y"
formatField(e, 'y', 1, b);
return;
}
default: break;
}
break;
}
case "yMMMd": {
switch (f) {
case DAY: {
// "y MMM d–"
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append("–");
// "d"
formatField(e, 'd', 1, b);
return;
}
case YEAR: {
// "y MMM d – "
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(" – ");
// "y MMM d"
formatField(e, 'y', 1, b);
b.append(" ");
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
return;
}
case MONTH: {
// "y MMM d – "
formatField(s, 'y', 1, b);
b.append(" ");
formatField(s, 'M', 3, b);
b.append(" ");
formatField(s, 'd', 1, b);
b.append(" – ");
// "MMM d"
formatField(e, 'M', 3, b);
b.append(" ");
formatField(e, 'd', 1, b);
return;
}
default: break;
}
break;
}
default: break;
}
// "{0} – {1}"
formatSkeleton(k, s, b);
b.append(" – ");
formatSkeleton(k, e, b);
}
}
protected void wrapTimeZoneGMT(StringBuilder b, boolean neg, int hours, int mins,
boolean _short) {
if (hours == 0 && mins == 0) {
b.append("GMT");
return;
}
boolean emitMins = !_short || mins > 0;
b.append("GMT");
if (neg) {
b.append("-");
zeroPad2(b, hours, _short ? 1 : 2);
if (emitMins) {
b.append(":");
}
if (emitMins) {
zeroPad2(b, mins, 2);
}
}
else {
b.append("+");
zeroPad2(b, hours, _short ? 1 : 2);
if (emitMins) {
b.append(":");
}
if (emitMins) {
zeroPad2(b, mins, 2);
}
}
}
protected void wrapTimeZoneRegion(StringBuilder b, String region) {
b.append(region);
}
}