All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squarespace.cldr.dates._CalendarFormatter_my 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 "my"
 * See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
 */
public class _CalendarFormatter_my extends CalendarFormatterBase {
  public _CalendarFormatter_my() {
    this.locale = new CLDRLocale("my", "", "", "");
    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: {
        // "dd-MM-yy"
        formatField(d, b, 'd', 2);
        b.append("-");
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'y', 2);
        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: {
        // "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: {
        // "z HH:mm:ss"
        formatField(d, b, 'z', 1);
        b.append(" ");
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case FULL: {
        // "zzzz HH:mm:ss"
        formatField(d, b, 'z', 4);
        b.append(" ");
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        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);
        b.append("နေ့");
        break;
      }
      case "Ed": {
        // Pattern: "d ရက် Eနေ့"
        formatField(d, b, 'd', 1);
        b.append(" ရက် ");
        formatField(d, b, 'E', 1);
        b.append("နေ့");
        break;
      }
      case "Ehm": {
        // Pattern: "Eနေ့ a h:mm"
        formatField(d, b, 'E', 1);
        b.append("နေ့ ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "EHm": {
        // Pattern: "HH:mm Eနေ့"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(" ");
        formatField(d, b, 'E', 1);
        b.append("နေ့");
        break;
      }
      case "Ehms": {
        // Pattern: "Eနေ့ a h:mm:ss"
        formatField(d, b, 'E', 1);
        b.append("နေ့ ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "EHms": {
        // Pattern: "HH:mm:ss Eနေ့"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        b.append(" ");
        formatField(d, b, 'E', 1);
        b.append("နေ့");
        break;
      }
      case "Gy": {
        // Pattern: "G y"
        formatField(d, b, 'G', 1);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "GyMMM": {
        // Pattern: "G y MMM"
        formatField(d, b, 'G', 1);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        break;
      }
      case "GyMMMd": {
        // Pattern: "G y MMM d ရက်"
        formatField(d, b, 'G', 1);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(" ရက်");
        break;
      }
      case "GyMMMEd": {
        // Pattern: "G y MMM d ရက် Eနေ့"
        formatField(d, b, 'G', 1);
        b.append(" ");
        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);
        b.append("နေ့");
        break;
      }
      case "h": {
        // Pattern: "a h နာရီ"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(" နာရီ");
        break;
      }
      case "H": {
        // Pattern: "HH"
        formatField(d, b, 'H', 2);
        break;
      }
      case "hm": {
        // Pattern: "a h:mm"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "Hm": {
        // Pattern: "HH:mm"
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "hms": {
        // Pattern: "a h:mm:ss"
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        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: "v a h:mm:ss"
        formatField(d, b, 'v', 1);
        b.append(" ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "Hmsv": {
        // Pattern: "v HH:mm:ss"
        formatField(d, b, 'v', 1);
        b.append(" ");
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(":");
        formatField(d, b, 's', 2);
        break;
      }
      case "hmv": {
        // Pattern: "v a h:mm"
        formatField(d, b, 'v', 1);
        b.append(" ");
        formatField(d, b, 'a', 1);
        b.append(" ");
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "Hmv": {
        // Pattern: "v HH:mm"
        formatField(d, b, 'v', 1);
        b.append(" ");
        formatField(d, b, 'H', 2);
        b.append(":");
        formatField(d, b, 'm', 2);
        break;
      }
      case "M": {
        // Pattern: "L"
        formatField(d, b, 'L', 1);
        break;
      }
      case "Md": {
        // Pattern: "d/M"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        break;
      }
      case "MEd": {
        // Pattern: "d/M Eနေ့"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        b.append(" ");
        formatField(d, b, 'E', 1);
        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: "MMM d ရက် Eနေ့"
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(" ရက် ");
        formatField(d, b, 'E', 1);
        b.append("နေ့");
        break;
      }
      case "MMMMd": {
        // Pattern: "MMMM d"
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'd', 1);
        break;
      }
      case "MMMMEd": {
        // Pattern: "MMMM d ရက် Eနေ့"
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'd', 1);
        b.append(" ရက် ");
        formatField(d, b, 'E', 1);
        b.append("နေ့");
        break;
      }
      case "MMMMW-count-other": {
        // Pattern: "MMM လ W ပတ်မြောက်"
        formatField(d, b, 'M', 3);
        b.append(" လ ");
        formatField(d, b, 'W', 1);
        b.append(" ပတ်မြောက်");
        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: "M/y"
        formatField(d, b, 'M', 1);
        b.append("/");
        formatField(d, b, 'y', 1);
        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);
        break;
      }
      case "yMEd": {
        // Pattern: "d-M-y Eနေ့"
        formatField(d, b, 'd', 1);
        b.append("-");
        formatField(d, b, 'M', 1);
        b.append("-");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'E', 1);
        b.append("နေ့");
        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: "d MMM y Eနေ့"
        formatField(d, b, 'd', 1);
        b.append(" ");
        formatField(d, b, 'M', 3);
        b.append(" ");
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'E', 1);
        b.append("နေ့");
        break;
      }
      case "yMMMM": {
        // Pattern: "MMMM y"
        formatField(d, b, 'M', 4);
        b.append(" ");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yQQQ": {
        // Pattern: "y QQQ"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'Q', 3);
        break;
      }
      case "yQQQQ": {
        // Pattern: "y QQQQ"
        formatField(d, b, 'y', 1);
        b.append(" ");
        formatField(d, b, 'Q', 4);
        break;
      }
      case "yw-count-other": {
        // Pattern: "y ခု w ပတ်မြောက်"
        formatField(d, b, 'y', 1);
        b.append(" ခု ");
        formatField(d, b, 'w', 1);
        b.append(" ပတ်မြောက်");
        break;
      }
      default: {
        return false;
      }
    }
    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy