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

com.squarespace.cldr.dates._CalendarFormatter_bn 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 "bn"
 * See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
 */
public class _CalendarFormatter_bn extends CalendarFormatterBase {
  public _CalendarFormatter_bn() {
    this.locale = new CLDRLocale("bn", "", "", "");
    this.firstDay = 1;
    this.minDays = 1;
    this.eras = new FieldVariants(
          new String[] {"খ্রিস্টপূর্ব", "খৃষ্টাব্দ"}, 
          new String[] {"খ্রিস্টপূর্ব", "খৃষ্টাব্দ"}, 
          new String[] {}, 
          new String[] {"খ্রিস্টপূর্ব", "খৃষ্টাব্দ"});
    this.quartersFormat = new FieldVariants(
          new String[] {"Q1", "Q2", "Q3", "Q4"}, 
          new String[] {"১", "২", "৩", "৪"}, 
          new String[] {}, 
          new String[] {"ত্রৈমাসিক", "দ্বিতীয় ত্রৈমাসিক", "তৃতীয় ত্রৈমাসিক", "চতুর্থ ত্রৈমাসিক"});
    this.quartersStandalone = new FieldVariants(
          new String[] {"Q1", "Q2", "Q3", "Q4"}, 
          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[] {"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);
        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 a"
        formatField(d, b, 'h', 1);
        b.append(":");
        formatField(d, b, 'm', 2);
        b.append(" ");
        formatField(d, b, 'a', 1);
        break;
      }
      case MEDIUM: {
        // "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 LONG: {
        // "h:mm:ss a 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, 'a', 1);
        b.append(" ");
        formatField(d, b, 'z', 1);
        break;
      }
      case FULL: {
        // "h:mm:ss a 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, 'a', 1);
        b.append(" ");
        formatField(d, b, 'z', 4);
        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: "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: "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: "d/M"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        break;
      }
      case "MEd": {
        // Pattern: "E, d-M"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append("-");
        formatField(d, b, 'M', 1);
        break;
      }
      case "MMdd": {
        // Pattern: "dd-MM"
        formatField(d, b, 'd', 2);
        b.append("-");
        formatField(d, b, 'M', 2);
        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: "MMM এর Wয় সপ্তাহ"
        formatField(d, b, 'M', 3);
        b.append(" এর ");
        formatField(d, b, 'W', 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: "d/M/y"
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMEd": {
        // Pattern: "E, d/M/y"
        formatField(d, b, 'E', 1);
        b.append(", ");
        formatField(d, b, 'd', 1);
        b.append("/");
        formatField(d, b, 'M', 1);
        b.append("/");
        formatField(d, b, 'y', 1);
        break;
      }
      case "yMM": {
        // Pattern: "MM-y"
        formatField(d, b, 'M', 2);
        b.append("-");
        formatField(d, b, 'y', 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 "yQQQ": {
        // Pattern: "QQQ y"
        formatField(d, b, 'Q', 3);
        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: "y এর wতম সপ্তাহ"
        formatField(d, b, 'y', 1);
        b.append(" এর ");
        formatField(d, b, 'w', 1);
        b.append("তম সপ্তাহ");
        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