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_eu Maven / Gradle / Ivy
//
//
// AUTO-GENERATED CLASS - DO NOT EDIT
//
//
package com.squarespace.cldr.dates;
import com.squarespace.cldr.CLDRLocale;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.ZonedDateTime;
/**
* Locale "eu"
* See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
*/
public class _CalendarFormatter_eu extends CalendarFormatterBase {
public _CalendarFormatter_eu() {
this.locale = new CLDRLocale("eu", "", "", "");
this.firstDay = 1;
this.minDays = 1;
this.eras = new FieldVariants(
new String[] {"K.a.", "K.o."},
new String[] {"K.a.", "K.o."},
new String[] {},
new String[] {"K.a.", "Kristo ondoren"});
this.quartersFormat = new FieldVariants(
new String[] {"1Hh", "2Hh", "3Hh", "4Hh"},
new String[] {"1", "2", "3", "4"},
new String[] {},
new String[] {"1. hiruhilekoa", "2. hiruhilekoa", "3. hiruhilekoa", "4. hiruhilekoa"});
this.quartersStandalone = new FieldVariants(
new String[] {"1Hh", "2Hh", "3Hh", "4Hh"},
new String[] {"1", "2", "3", "4"},
new String[] {},
new String[] {"1. hiruhilekoa", "2. hiruhilekoa", "3. hiruhilekoa", "4. hiruhilekoa"});
this.monthsFormat = new FieldVariants(
new String[] {"urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe."},
new String[] {"U", "O", "M", "A", "M", "E", "U", "A", "I", "U", "A", "A"},
new String[] {},
new String[] {"urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua"});
this.monthsStandalone = new FieldVariants(
new String[] {"urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe."},
new String[] {"U", "O", "M", "A", "M", "E", "U", "A", "I", "U", "A", "A"},
new String[] {},
new String[] {"urtarrila", "Otsaila", "Martxoa", "Apirila", "Maiatza", "Ekaina", "Uztaila", "Abuztua", "Iraila", "Urria", "Azaroa", "Abendua"});
this.weekdaysFormat = new FieldVariants(
new String[] {"ig.", "al.", "ar.", "az.", "og.", "or.", "lr."},
new String[] {"I", "A", "A", "A", "O", "O", "L"},
new String[] {"ig.", "al.", "ar.", "az.", "og.", "or.", "lr."},
new String[] {"igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"});
this.weekdaysStandalone = new FieldVariants(
new String[] {"ig.", "al.", "ar.", "az.", "og.", "or.", "lr."},
new String[] {"I", "A", "A", "A", "O", "O", "L"},
new String[] {"ig.", "al.", "ar.", "az.", "og.", "or.", "lr."},
new String[] {"Igandea", "Astelehena", "Asteartea", "Asteazkena", "Osteguna", "Ostirala", "Larunbata"});
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"});
}
@Override
public void formatDate(FormatType type, ZonedDateTime d, StringBuilder b) {
switch (type) {
case SHORT: {
// "yy/M/d"
formatField(d, b, 'y', 2);
b.append("/");
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
break;
}
case MEDIUM: {
// "y MMM d"
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'd', 1);
break;
}
case LONG: {
// "y('e')'ko' MMMM d"
formatField(d, b, 'y', 1);
b.append("(e)ko ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'd', 1);
break;
}
case FULL: {
// "y('e')'ko' MMMM d, EEEE"
formatField(d, b, 'y', 1);
b.append("(e)ko ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 4);
break;
}
}
}
@Override
public void formatTime(FormatType type, ZonedDateTime d, StringBuilder b) {
switch (type) {
case SHORT: {
// "HH:mm"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case MEDIUM: {
// "HH:mm:ss"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case LONG: {
// "HH:mm:ss (z)"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" (");
formatField(d, b, 'z', 1);
b.append(")");
break;
}
case FULL: {
// "HH:mm:ss (zzzz)"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" (");
formatField(d, b, 'z', 4);
b.append(")");
break;
}
}
}
@Override
public void formatWrapped(FormatType wrapperType, FormatType dateType, FormatType 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) {
switch (skeleton) {
case "d": {
// Pattern: "d"
formatField(d, b, 'd', 1);
break;
}
case "E": {
// Pattern: "ccc"
formatField(d, b, 'c', 3);
break;
}
case "Ed": {
// Pattern: "d, E"
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 1);
break;
}
case "Ehm": {
// Pattern: "E h:mm a"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" ");
formatField(d, b, 'a', 1);
break;
}
case "EHm": {
// Pattern: "E HH:mm"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case "Ehms": {
// Pattern: "E h:mm:ss a"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'a', 1);
break;
}
case "EHms": {
// Pattern: "E HH:mm:ss"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "Gy": {
// Pattern: "G y"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "GyMMM": {
// Pattern: "G y. 'urteko' MMM"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(". urteko ");
formatField(d, b, 'M', 3);
break;
}
case "GyMMMd": {
// Pattern: "G y. 'urteko' MMM d"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(". urteko ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'd', 1);
break;
}
case "GyMMMEd": {
// Pattern: "G y. 'urteko' MMM d, E"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(". urteko ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 1);
break;
}
case "h": {
// Pattern: "h a"
formatField(d, b, 'h', 1);
b.append(" ");
formatField(d, b, 'a', 1);
break;
}
case "H": {
// Pattern: "HH"
formatField(d, b, 'H', 2);
break;
}
case "hm": {
// Pattern: "h:mm a"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" ");
formatField(d, b, 'a', 1);
break;
}
case "Hm": {
// Pattern: "HH:mm"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case "hms": {
// Pattern: "h:mm:ss a"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'a', 1);
break;
}
case "Hms": {
// Pattern: "HH:mm:ss"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "hmsv": {
// Pattern: "h:mm:ss a v"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "Hmsv": {
// Pattern: "HH:mm:ss v"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "hmv": {
// Pattern: "h:mm a v"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" ");
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "Hmv": {
// Pattern: "HH:mm v"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "M": {
// Pattern: "L"
formatField(d, b, 'L', 1);
break;
}
case "Md": {
// Pattern: "M/d"
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
break;
}
case "MEd": {
// Pattern: "M/d, E"
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 1);
break;
}
case "MMM": {
// Pattern: "LLL"
formatField(d, b, 'L', 3);
break;
}
case "MMMd": {
// Pattern: "MMM d"
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'd', 1);
break;
}
case "MMMEd": {
// Pattern: "MMM d, E"
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 1);
break;
}
case "MMMMd": {
// Pattern: "MMMM d"
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'd', 1);
break;
}
case "MMMMW-count-one": {
// Pattern: "MMM W 'astea'"
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'W', 1);
b.append(" astea");
break;
}
case "MMMMW-count-other": {
// Pattern: "MMM'ren' 'astea' W"
formatField(d, b, 'M', 3);
b.append("ren astea ");
formatField(d, b, 'W', 1);
break;
}
case "ms": {
// Pattern: "mm:ss"
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "y": {
// Pattern: "y"
formatField(d, b, 'y', 1);
break;
}
case "yM": {
// Pattern: "y/M"
formatField(d, b, 'y', 1);
b.append("/");
formatField(d, b, 'M', 1);
break;
}
case "yMd": {
// Pattern: "y/M/d"
formatField(d, b, 'y', 1);
b.append("/");
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
break;
}
case "yMEd": {
// Pattern: "y/M/d, E"
formatField(d, b, 'y', 1);
b.append("/");
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 1);
break;
}
case "yMMM": {
// Pattern: "y MMM"
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'M', 3);
break;
}
case "yMMMd": {
// Pattern: "y MMM d"
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'd', 1);
break;
}
case "yMMMEd": {
// Pattern: "y MMM d, E"
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 1);
break;
}
case "yMMMM": {
// Pattern: "y('e')'ko' MMMM"
formatField(d, b, 'y', 1);
b.append("(e)ko ");
formatField(d, b, 'M', 4);
break;
}
case "yMMMMd": {
// Pattern: "y('e')'ko' MMMM d"
formatField(d, b, 'y', 1);
b.append("(e)ko ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'd', 1);
break;
}
case "yMMMMEd": {
// Pattern: "y('e')'ko' MMMM d, E"
formatField(d, b, 'y', 1);
b.append("(e)ko ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(", ");
formatField(d, b, 'E', 1);
break;
}
case "yQQQ": {
// Pattern: "y('e')'ko' QQQ"
formatField(d, b, 'y', 1);
b.append("(e)ko ");
formatField(d, b, 'Q', 3);
break;
}
case "yQQQQ": {
// Pattern: "y('e')'ko' QQQQ"
formatField(d, b, 'y', 1);
b.append("(e)ko ");
formatField(d, b, 'Q', 4);
break;
}
case "yw-count-one": {
// Pattern: "y 'urteko' w 'astea'"
formatField(d, b, 'y', 1);
b.append(" urteko ");
formatField(d, b, 'w', 1);
b.append(" astea");
break;
}
case "yw-count-other": {
// Pattern: "w/y 'astea'"
formatField(d, b, 'w', 1);
b.append("/");
formatField(d, b, 'y', 1);
b.append(" astea");
break;
}
default: {
return false;
}
}
return true;
}
}