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_fa 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 "fa"
* See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
*/
public class _CalendarFormatter_fa extends CalendarFormatterBase {
public _CalendarFormatter_fa() {
this.locale = new CLDRLocale("fa", "", "", "");
this.firstDay = 1;
this.minDays = 1;
this.eras = new FieldVariants(
new String[] {"ق.م.", "م."},
new String[] {"ق", "م"},
new String[] {},
new String[] {"قبل از میلاد", "میلادی"});
this.quartersFormat = new FieldVariants(
new String[] {"سم۱", "سم۲", "سم۳", "سم۴"},
new String[] {"۱", "۲", "۳", "۴"},
new String[] {},
new String[] {"سهماههٔ اول", "سهماههٔ دوم", "سهماههٔ سوم", "سهماههٔ چهارم"});
this.quartersStandalone = new FieldVariants(
new String[] {"سم۱", "سم۲", "سم۳", "سم۴"},
new String[] {"۱", "۲", "۳", "۴"},
new String[] {},
new String[] {"سهماههٔ اول", "سهماههٔ دوم", "سهماههٔ سوم", "سهماههٔ چهارم"});
this.monthsFormat = new FieldVariants(
new String[] {"ژانویهٔ", "فوریهٔ", "مارس", "آوریل", "مهٔ", "ژوئن", "ژوئیهٔ", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"},
new String[] {"ژ", "ف", "م", "آ", "م", "ژ", "ژ", "ا", "س", "ا", "ن", "د"},
new String[] {},
new String[] {"ژانویهٔ", "فوریهٔ", "مارس", "آوریل", "مهٔ", "ژوئن", "ژوئیهٔ", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"});
this.monthsStandalone = new FieldVariants(
new String[] {"ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"},
new String[] {"ژ", "ف", "م", "آ", "م", "ژ", "ژ", "ا", "س", "ا", "ن", "د"},
new String[] {},
new String[] {"ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"});
this.weekdaysFormat = new FieldVariants(
new String[] {"یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"},
new String[] {"ی", "د", "س", "چ", "پ", "ج", "ش"},
new String[] {"۱ش", "۲ش", "۳ش", "۴ش", "۵ش", "ج", "ش"},
new String[] {"یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"});
this.weekdaysStandalone = new FieldVariants(
new String[] {"یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"},
new String[] {"ی", "د", "س", "چ", "پ", "ج", "ش"},
new String[] {"۱ش", "۲ش", "۳ش", "۴ش", "۵ش", "ج", "ش"},
new String[] {"یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"});
this.dayPeriodsFormat = new FieldVariants(
new String[] {"ق.ظ.", "ب.ظ."},
new String[] {"ق", "ب"},
new String[] {},
new String[] {"قبلازظهر", "بعدازظهر"});
this.dayPeriodsStandalone = new FieldVariants(
new String[] {"ق.ظ.", "ب.ظ."},
new String[] {"ق.ظ.", "ب.ظ."},
new String[] {},
new String[] {"قبلازظهر", "بعدازظهر"});
}
@Override
public void formatDate(FormatType type, ZonedDateTime d, StringBuilder b) {
switch (type) {
case SHORT: {
// "y/M/d"
formatField(d, b, 'y', 1);
b.append("/");
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
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);
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);
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);
break;
}
}
}
@Override
public void formatTime(FormatType type, ZonedDateTime d, StringBuilder b) {
switch (type) {
case SHORT: {
// "H:mm"
formatField(d, b, 'H', 1);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case MEDIUM: {
// "H:mm:ss"
formatField(d, b, 'H', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case LONG: {
// "H:mm:ss (z)"
formatField(d, b, 'H', 1);
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: {
// "H:mm:ss (zzzz)"
formatField(d, b, 'H', 1);
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}، ساعت {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: "E d"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'd', 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 H:mm"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'H', 1);
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 H:mm:ss"
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);
break;
}
case "Gy": {
// Pattern: "y G"
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'G', 1);
break;
}
case "GyMMM": {
// Pattern: "MMM y G"
formatField(d, b, 'M', 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: "H"
formatField(d, b, 'H', 1);
break;
}
case "HHmmZ": {
// Pattern: "HH:mm (Z)"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" (");
formatField(d, b, 'Z', 1);
b.append(")");
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: "H:mm"
formatField(d, b, 'H', 1);
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: "H:mm:ss"
formatField(d, b, 'H', 1);
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: "E M/d"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
break;
}
case "MMM": {
// Pattern: "LLL"
formatField(d, b, 'L', 3);
break;
}
case "MMMd": {
// Pattern: "d LLL"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'L', 3);
break;
}
case "MMMEd": {
// Pattern: "E d LLL"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'L', 3);
break;
}
case "MMMMd": {
// Pattern: "d LLLL"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'L', 4);
break;
}
case "MMMMEd": {
// Pattern: "E d LLLL"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'L', 4);
break;
}
case "MMMMW-count-one": {
// Pattern: "هفته W از MMM"
b.append("هفته ");
formatField(d, b, 'W', 1);
b.append(" از ");
formatField(d, b, 'M', 3);
break;
}
case "MMMMW-count-other": {
// Pattern: "هفته W از MMM"
b.append("هفته ");
formatField(d, b, 'W', 1);
b.append(" از ");
formatField(d, b, 'M', 3);
break;
}
case "mmss": {
// Pattern: "mm:ss"
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
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: "E y/M/d"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'y', 1);
b.append("/");
formatField(d, b, 'M', 1);
b.append("/");
formatField(d, b, 'd', 1);
break;
}
case "yMMM": {
// Pattern: "MMM y"
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
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);
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);
break;
}
case "yMMMM": {
// Pattern: "MMMM y"
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "yMMMMEEEEd": {
// Pattern: "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);
break;
}
case "yQQQ": {
// Pattern: "QQQQ y"
formatField(d, b, 'Q', 4);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "yQQQQ": {
// Pattern: "QQQQ y"
formatField(d, b, 'Q', 4);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "yw-count-one": {
// Pattern: "هفته w از y"
b.append("هفته ");
formatField(d, b, 'w', 1);
b.append(" از ");
formatField(d, b, 'y', 1);
break;
}
case "yw-count-other": {
// Pattern: "هفته w از y"
b.append("هفته ");
formatField(d, b, 'w', 1);
b.append(" از ");
formatField(d, b, 'y', 1);
break;
}
default: {
return false;
}
}
return true;
}
}