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_hr_BA 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 "hr-BA"
* See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
*/
public class _CalendarFormatter_hr_BA extends CalendarFormatterBase {
public _CalendarFormatter_hr_BA() {
this.locale = new CLDRLocale("hr", "", "BA", "");
this.firstDay = 1;
this.minDays = 1;
this.eras = new FieldVariants(
new String[] {"pr. Kr.", "po. Kr."},
new String[] {"pr.n.e.", "AD"},
new String[] {},
new String[] {"prije Krista", "poslije Krista"});
this.quartersFormat = new FieldVariants(
new String[] {"1. kv.", "2. kv.", "3. kv.", "4. kv."},
new String[] {"1.", "2.", "3.", "4."},
new String[] {},
new String[] {"1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"});
this.quartersStandalone = new FieldVariants(
new String[] {"1. kv.", "2. kv.", "3. kv.", "4. kv."},
new String[] {"1.", "2.", "3.", "4."},
new String[] {},
new String[] {"1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"});
this.monthsFormat = new FieldVariants(
new String[] {"sij", "velj", "ožu", "tra", "svi", "lip", "srp", "kol", "ruj", "lis", "stu", "pro"},
new String[] {"1.", "2.", "3.", "4.", "5.", "6.", "7.", "8.", "9.", "10.", "11.", "12."},
new String[] {},
new String[] {"siječnja", "veljače", "ožujka", "travnja", "svibnja", "lipnja", "srpnja", "kolovoza", "rujna", "listopada", "studenoga", "prosinca"});
this.monthsStandalone = new FieldVariants(
new String[] {"sij", "velj", "ožu", "tra", "svi", "lip", "srp", "kol", "ruj", "lis", "stu", "pro"},
new String[] {"1.", "2.", "3.", "4.", "5.", "6.", "7.", "8.", "9.", "10.", "11.", "12."},
new String[] {},
new String[] {"siječanj", "veljača", "ožujak", "travanj", "svibanj", "lipanj", "srpanj", "kolovoz", "rujan", "listopad", "studeni", "prosinac"});
this.weekdaysFormat = new FieldVariants(
new String[] {"ned", "pon", "uto", "sri", "čet", "pet", "sub"},
new String[] {"N", "P", "U", "S", "Č", "P", "S"},
new String[] {"ned", "pon", "uto", "sri", "čet", "pet", "sub"},
new String[] {"nedjelja", "ponedjeljak", "utorak", "srijeda", "četvrtak", "petak", "subota"});
this.weekdaysStandalone = new FieldVariants(
new String[] {"ned", "pon", "uto", "sri", "čet", "pet", "sub"},
new String[] {"N", "P", "U", "S", "Č", "P", "S"},
new String[] {"ned", "pon", "uto", "sri", "čet", "pet", "sub"},
new String[] {"nedjelja", "ponedjeljak", "utorak", "srijeda", "četvrtak", "petak", "subota"});
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: {
// "d. M. yy."
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 1);
b.append(". ");
formatField(d, b, 'y', 2);
b.append(".");
break;
}
case MEDIUM: {
// "d. MMM y."
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case LONG: {
// "d. MMMM y."
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case FULL: {
// "EEEE, d. MMMM y."
formatField(d, b, 'E', 4);
b.append(", ");
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
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);
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:
{
// "{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;
}
case LONG:
case FULL:
{
// "{1} 'u' {0}"
if (dateType != null) {
formatDate(dateType, d, b);
} else {
formatSkeleton(dateSkel, d, b);
}
b.append(" u ");
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);
b.append(".");
break;
}
case "E": {
// Pattern: "ccc"
formatField(d, b, 'c', 3);
break;
}
case "Ed": {
// Pattern: "E, d."
formatField(d, b, 'E', 1);
b.append(", ");
formatField(d, b, 'd', 1);
b.append(".");
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: "y. G"
formatField(d, b, 'y', 1);
b.append(". ");
formatField(d, b, 'G', 1);
break;
}
case "GyMMM": {
// Pattern: "LLL y. G"
formatField(d, b, 'L', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(". ");
formatField(d, b, 'G', 1);
break;
}
case "GyMMMd": {
// Pattern: "d. MMM y. G"
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(". ");
formatField(d, b, 'G', 1);
break;
}
case "GyMMMEd": {
// Pattern: "E, d. MMM y. G"
formatField(d, b, 'E', 1);
b.append(", ");
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(". ");
formatField(d, b, 'G', 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: "hh:mm a"
formatField(d, b, 'h', 2);
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: "hh:mm:ss a"
formatField(d, b, 'h', 2);
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);
b.append(".");
break;
}
case "Md": {
// Pattern: "dd. MM."
formatField(d, b, 'd', 2);
b.append(". ");
formatField(d, b, 'M', 2);
b.append(".");
break;
}
case "MEd": {
// Pattern: "E, dd. MM."
formatField(d, b, 'E', 1);
b.append(", ");
formatField(d, b, 'd', 2);
b.append(". ");
formatField(d, b, 'M', 2);
b.append(".");
break;
}
case "MMdd": {
// Pattern: "dd. MM."
formatField(d, b, 'd', 2);
b.append(". ");
formatField(d, b, 'M', 2);
b.append(".");
break;
}
case "MMM": {
// Pattern: "LLL"
formatField(d, b, 'L', 3);
break;
}
case "MMMd": {
// Pattern: "d. MMM"
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 3);
break;
}
case "MMMEd": {
// Pattern: "E, d. MMM"
formatField(d, b, 'E', 1);
b.append(", ");
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 3);
break;
}
case "MMMMd": {
// Pattern: "d. MMMM"
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 4);
break;
}
case "MMMMEd": {
// Pattern: "E, d. MMMM"
formatField(d, b, 'E', 1);
b.append(", ");
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 4);
break;
}
case "MMMMW-count-one": {
// Pattern: "W. 'tjedan' 'u' MMM"
formatField(d, b, 'W', 1);
b.append(". tjedan u ");
formatField(d, b, 'M', 3);
break;
}
case "MMMMW-count-few": {
// Pattern: "W. 'tjedan' 'u' MMM"
formatField(d, b, 'W', 1);
b.append(". tjedan u ");
formatField(d, b, 'M', 3);
break;
}
case "MMMMW-count-other": {
// Pattern: "W. 'tjedan' 'u' MMM"
formatField(d, b, 'W', 1);
b.append(". tjedan u ");
formatField(d, b, 'M', 3);
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);
b.append(".");
break;
}
case "yM": {
// Pattern: "MM. y."
formatField(d, b, 'M', 2);
b.append(". ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yMd": {
// Pattern: "dd. MM. y."
formatField(d, b, 'd', 2);
b.append(". ");
formatField(d, b, 'M', 2);
b.append(". ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yMEd": {
// Pattern: "E, dd. MM. y."
formatField(d, b, 'E', 1);
b.append(", ");
formatField(d, b, 'd', 2);
b.append(". ");
formatField(d, b, 'M', 2);
b.append(". ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yMM": {
// Pattern: "MM. y."
formatField(d, b, 'M', 2);
b.append(". ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yMMM": {
// Pattern: "LLL y."
formatField(d, b, 'L', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yMMMd": {
// Pattern: "d. MMM y."
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yMMMEd": {
// Pattern: "E, d. MMM y."
formatField(d, b, 'E', 1);
b.append(", ");
formatField(d, b, 'd', 1);
b.append(". ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yMMMM": {
// Pattern: "LLLL y."
formatField(d, b, 'L', 4);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yQQQ": {
// Pattern: "QQQ y."
formatField(d, b, 'Q', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yQQQQ": {
// Pattern: "QQQQ y."
formatField(d, b, 'Q', 4);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yw-count-one": {
// Pattern: "w. 'tjedan' 'u' y."
formatField(d, b, 'w', 1);
b.append(". tjedan u ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yw-count-few": {
// Pattern: "w. 'tjedan' 'u' y."
formatField(d, b, 'w', 1);
b.append(". tjedan u ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
case "yw-count-other": {
// Pattern: "w. 'tjedan' 'u' y."
formatField(d, b, 'w', 1);
b.append(". tjedan u ");
formatField(d, b, 'y', 1);
b.append(".");
break;
}
default: {
return false;
}
}
return true;
}
}