8 "github.com/go-playground/locales"
9 "github.com/go-playground/locales/currency"
14 pluralsCardinal []locales.PluralRule
15 pluralsOrdinal []locales.PluralRule
16 pluralsRange []locales.PluralRule
25 currencies []string // idx = enum of currency code
26 monthsAbbreviated []string
29 daysAbbreviated []string
33 periodsAbbreviated []string
34 periodsNarrow []string
37 erasAbbreviated []string
40 timezones map[string]string
43 // New returns a new instance of translator for the 'dz_BT' locale
44 func New() locales.Translator {
47 pluralsCardinal: []locales.PluralRule{6},
56 inifinity: "གྲངས་མེད",
57 currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AUD", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "EUR", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGX", "USD", "USN", "USS", "UYI", "UYP", "UYU", "UZS", "VEB", "VEF", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"},
59 monthsAbbreviated: []string{"", "༡", "༢", "༣", "༤", "༥", "༦", "༧", "༨", "༩", "༡༠", "༡༡", "12"},
60 monthsNarrow: []string{"", "༡", "༢", "༣", "4", "༥", "༦", "༧", "༨", "9", "༡༠", "༡༡", "༡༢"},
61 monthsWide: []string{"", "ཟླ་དངཔ་", "ཟླ་གཉིས་པ་", "ཟླ་གསུམ་པ་", "ཟླ་བཞི་པ་", "ཟླ་ལྔ་པ་", "ཟླ་དྲུག་པ", "ཟླ་བདུན་པ་", "ཟླ་བརྒྱད་པ་", "ཟླ་དགུ་པ་", "ཟླ་བཅུ་པ་", "ཟླ་བཅུ་གཅིག་པ་", "ཟླ་བཅུ་གཉིས་པ་"},
62 daysAbbreviated: []string{"ཟླ་", "མིར་", "ལྷག་", "ཕུར་", "སངས་", "སྤེན་", "ཉི་"},
63 daysNarrow: []string{"ཟླ", "མིར", "ལྷག", "ཕུར", "སངྶ", "སྤེན", "ཉི"},
64 daysShort: []string{"ཟླ་", "མིར་", "ལྷག་", "ཕུར་", "སངས་", "སྤེན་", "ཉི་"},
65 daysWide: []string{"གཟའ་ཟླ་བ་", "གཟའ་མིག་དམར་", "གཟའ་ལྷག་པ་", "གཟའ་ཕུར་བུ་", "གཟའ་པ་སངས་", "གཟའ་སྤེན་པ་", "གཟའ་ཉི་མ་"},
66 periodsAbbreviated: []string{"སྔ་ཆ་", "ཕྱི་ཆ་"},
67 periodsNarrow: []string{"སྔ་ཆ་", "ཕྱི་ཆ་"},
68 periodsWide: []string{"སྔ་ཆ་", "ཕྱི་ཆ་"},
69 erasAbbreviated: []string{"BCE", "CE"},
70 erasNarrow: []string{"", ""},
71 erasWide: []string{"", ""},
72 timezones: map[string]string{"TMST": "TMST", "IST": "རྒྱ་གར་ཆུ་ཚོད", "SAST": "ལྷོ་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད", "ACDT": "དབུས་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཉིན་སྲུང་ཆུ་ཚོད", "WEZ": "ནུབ་ཕྱོགས་ཡུ་རོ་པེན་ཚད་ལྡན་ཆུ་ཚོད", "HNPMX": "HNPMX", "MST": "MST", "WAST": "ནུབ་ཕྱོགས་ཨཕ་རི་ཀཱ་བྱཱར་དུས་ཆུ་ཚོད", "ART": "ཨར་ཇེན་ཊི་ན་ཚད་ལྡན་ཆུ་ཚོད", "ARST": "ཨར་ཇེན་ཊི་ན་བྱཱར་དུས་ཆུ་ཚོད", "HEOG": "ནུབ་ཕྱོགས་གིརིན་ལེནཌ་བྱཱར་དུས་ཆུ་ཚོད", "HECU": "ཀིའུ་བྷ་ཉིན་སྲུང་ཆུ་ཚོད", "CDT": "བྱང་ཨ་མི་རི་ཀ་དབུས་ཕྱོགས་ཉིན་སྲུང་ཆུ་ཚོད", "SRT": "སུ་རི་ནཱམ་ཆུ་ཚོད", "ACWDT": "དབུས་ནུབ་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཉིན་སྲུང་ཆུ་ཚོད", "WIT": "ཤར་ཕྱོགས་ཨིན་ཌོ་ནེ་ཤི་ཡ་ཆུ་ཚོད", "NZST": "ནིའུ་ཛི་ལེནཌ་ཚད་ལྡན་ཆུ་ཚོད", "HENOMX": "HENOMX", "LHDT": "LHDT", "AEDT": "ཤར་ཕྱོགས་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཉིན་སྲུང་ཆུ་ཚོད", "∅∅∅": "∅∅∅", "WESZ": "ནུབ་ཕྱོགས་ཡུ་རོ་པེན་བྱཱར་དུས་ཆུ་ཚོད", "HEPMX": "HEPMX", "ECT": "ཨེ་ཀུ་ཌཽ་ཆུ་ཚོད", "HNEG": "ཤར་ཕྱོགས་གིརིན་ལེནཌ་ཚད་ལྡན་ཆུ་ཚོད", "CAT": "དབུས་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད", "GMT": "གིརིན་ཝིཆ་ལུ་ཡོད་པའི་ཆུ་ཚོད", "BT": "འབྲུག་ཡུལ་ཆུ་ཚོད", "VET": "བེ་ནི་ཛུ་ཝེ་ལ་ཆུ་ཚོད", "AWST": "ནུབ་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཚད་ལྡན་ཆུ་ཚོད", "HNNOMX": "HNNOMX", "WITA": "དབུས་ཕྱོགས་ཨིན་ཌོ་ནེ་ཤི་ཡ་ཆུ་ཚོད", "HNOG": "ནུབ་ཕྱོགས་གིརིན་ལེནཌ་ཚད་ལྡན་ཆུ་ཚོད", "EDT": "བྱང་ཨ་མི་རི་ཀ་ཤར་ཕྱོགས་ཉིན་སྲུང་ཆུ་ཚོད", "GYT": "གུ་ཡ་ན་ཆུ་ཚོད", "AKST": "ཨ་ལསི་ཀ་ཚད་ལྡན་ཆུ་ཚོད", "CST": "བྱང་ཨ་མི་རི་ཀ་དབུས་ཕྱོགས་ཚད་ལྡན་ཆུ་ཚོད", "HAST": "ཧ་ཝའི་-ཨེ་ལིའུ་ཤེན་ཚད་ལྡན་ཆུ་ཚོད", "HEPM": "པའི་རི་དང་མི་ཀི་ལཱོན་ཉིན་སྲུང་ཆུ་ཚོད", "UYT": "ཡུ་རུ་གུ་ཝཱའི་ཚད་ལྡན་ཆུ་ཚོད", "LHST": "LHST", "WART": "ནུབ་ཕྱོགས་ཨར་ཇེན་ཊི་ན་ཚད་ལྡན་ཆུ་ཚོད", "COT": "ཀོ་ལོམ་བྷི་ཡ་ཚད་ལྡན་ཆུ་ཚོད", "WIB": "ནུབ་ཕྱོགས་ཨིན་ཌོ་ནེ་ཤི་ཡ་ཆུ་ཚོད", "CHAST": "CHAST", "OESZ": "ཤར་ཕྱོགས་ཡུ་རོ་པེན་བྱཱར་དུས་ཆུ་ཚོད", "UYST": "ཡུ་རུ་གུ་ཝཱའི་བྱཱར་དུས་ཆུ་ཚོད", "JST": "ཇ་པཱན་ཚད་ལྡན་ཆུ་ཚོད", "HNT": "ནིའུ་ཕའུནཌ་ལེནཌ་ཚད་ལྡན་ཆུ་ཚོད", "ACST": "དབུས་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཚད་ལྡན་ཆུ་ཚོད", "PST": "བྱང་ཨ་མི་རི་ཀ་པེ་སི་ཕིག་ཚད་ལྡན་ཆུ་ཚོད", "PDT": "བྱང་ཨ་མི་རི་ཀ་པེ་སི་ཕིག་ཉིན་སྲུང་ཆུ་ཚོད", "MDT": "MDT", "AEST": "ཤར་ཕྱོགས་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཚད་ལྡན་ཆུ་ཚོད", "AKDT": "ཨ་ལསི་ཀ་ཉིན་སྲུང་ཆུ་ཚོད", "BOT": "བྷོ་ལི་བི་ཡ་ཆུ་ཚོད", "ADT": "ཨེཊ་ལེན་ཊིཀ་ཉིན་སྲུང་ཆུ་ཚོད", "HNPM": "པའི་རི་དང་མི་ཀི་ལཱོན་ཚད་ལྡན་ཆུ་ཚོད", "EAT": "ཤར་ཕྱོགས་ཨཕ་རི་ཀཱ་ཆུ་ཚོད", "EST": "བྱང་ཨ་མི་རི་ཀ་ཤར་ཕྱོགས་ཚད་ལྡན་ཆུ་ཚོད", "ChST": "ChST", "HNCU": "ཀིའུ་བྷ་ཚད་ལྡན་ཆུ་ཚོད", "AWDT": "ནུབ་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཉིན་སྲུང་ཆུ་ཚོད", "AST": "ཨེཊ་ལེན་ཊིཀ་ཚད་ལྡན་ཆུ་ཚོད", "WAT": "ནུབ་ཕྱོགས་ཨཕ་རི་ཀཱ་ཚད་ལྡན་ཆུ་ཚོད", "HEEG": "ཤར་ཕྱོགས་གིརིན་ལེནཌ་བྱཱར་དུས་ཆུ་ཚོད", "HKST": "HKST", "OEZ": "ཤར་ཕྱོགས་ཡུ་རོ་པེན་ཚད་ལྡན་ཆུ་ཚོད", "NZDT": "ནིའུ་ཛི་ལེནཌ་ཉིན་སྲུང་ཆུ་ཚོད", "CLST": "ཅི་ལི་བྱཱར་དུས་ཆུ་ཚོད", "COST": "ཀོ་ལོམ་བྷི་ཡ་བྱཱར་དུས་ཆུ་ཚོད", "MEZ": "དབུས་ཕྱོགས་ཡུ་རོ་པེན་ཚད་ལྡན་ཆུ་ཚོད", "HADT": "ཧ་ཝའི་-ཨེ་ལིའུ་ཤེན་ཉིན་སྲུང་ཆུ་ཚོད", "TMT": "TMT", "HAT": "ནིའུ་ཕའུནཌ་ལེནཌ་ཉིན་སྲུང་ཆུ་ཚོད", "SGT": "SGT", "MESZ": "དབུས་ཕྱོགས་ཡུ་རོ་པེན་བྱཱར་དུས་ཆུ་ཚོད", "MYT": "MYT", "JDT": "ཇ་པཱན་ཉིན་སྲུང་ཆུ་ཚོད", "WARST": "ནུབ་ཕྱོགས་ཨར་ཇེན་ཊི་ན་བྱཱར་དུས་ཆུ་ཚོད", "GFT": "ཕིརེནཅ་གི་ཡ་ན་ཆུ་ཚོད", "HKT": "HKT", "CLT": "ཅི་ལི་ཚད་ལྡན་ཆུ་ཚོད", "CHADT": "CHADT", "ACWST": "དབུས་ནུབ་ཕྱོགས་ཨཱོས་ཊྲེལ་ལི་ཡ་ཚད་ལྡན་ཆུ་ཚོད"},
76 // Locale returns the current translators string locale
77 func (dz *dz_BT) Locale() string {
81 // PluralsCardinal returns the list of cardinal plural rules associated with 'dz_BT'
82 func (dz *dz_BT) PluralsCardinal() []locales.PluralRule {
83 return dz.pluralsCardinal
86 // PluralsOrdinal returns the list of ordinal plural rules associated with 'dz_BT'
87 func (dz *dz_BT) PluralsOrdinal() []locales.PluralRule {
88 return dz.pluralsOrdinal
91 // PluralsRange returns the list of range plural rules associated with 'dz_BT'
92 func (dz *dz_BT) PluralsRange() []locales.PluralRule {
93 return dz.pluralsRange
96 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'dz_BT'
97 func (dz *dz_BT) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
98 return locales.PluralRuleOther
101 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'dz_BT'
102 func (dz *dz_BT) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
103 return locales.PluralRuleUnknown
106 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'dz_BT'
107 func (dz *dz_BT) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
108 return locales.PluralRuleUnknown
111 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
112 func (dz *dz_BT) MonthAbbreviated(month time.Month) string {
113 return dz.monthsAbbreviated[month]
116 // MonthsAbbreviated returns the locales abbreviated months
117 func (dz *dz_BT) MonthsAbbreviated() []string {
118 return dz.monthsAbbreviated[1:]
121 // MonthNarrow returns the locales narrow month given the 'month' provided
122 func (dz *dz_BT) MonthNarrow(month time.Month) string {
123 return dz.monthsNarrow[month]
126 // MonthsNarrow returns the locales narrow months
127 func (dz *dz_BT) MonthsNarrow() []string {
128 return dz.monthsNarrow[1:]
131 // MonthWide returns the locales wide month given the 'month' provided
132 func (dz *dz_BT) MonthWide(month time.Month) string {
133 return dz.monthsWide[month]
136 // MonthsWide returns the locales wide months
137 func (dz *dz_BT) MonthsWide() []string {
138 return dz.monthsWide[1:]
141 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
142 func (dz *dz_BT) WeekdayAbbreviated(weekday time.Weekday) string {
143 return dz.daysAbbreviated[weekday]
146 // WeekdaysAbbreviated returns the locales abbreviated weekdays
147 func (dz *dz_BT) WeekdaysAbbreviated() []string {
148 return dz.daysAbbreviated
151 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
152 func (dz *dz_BT) WeekdayNarrow(weekday time.Weekday) string {
153 return dz.daysNarrow[weekday]
156 // WeekdaysNarrow returns the locales narrow weekdays
157 func (dz *dz_BT) WeekdaysNarrow() []string {
161 // WeekdayShort returns the locales short weekday given the 'weekday' provided
162 func (dz *dz_BT) WeekdayShort(weekday time.Weekday) string {
163 return dz.daysShort[weekday]
166 // WeekdaysShort returns the locales short weekdays
167 func (dz *dz_BT) WeekdaysShort() []string {
171 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
172 func (dz *dz_BT) WeekdayWide(weekday time.Weekday) string {
173 return dz.daysWide[weekday]
176 // WeekdaysWide returns the locales wide weekdays
177 func (dz *dz_BT) WeekdaysWide() []string {
181 // Decimal returns the decimal point of number
182 func (dz *dz_BT) Decimal() string {
186 // Group returns the group of number
187 func (dz *dz_BT) Group() string {
191 // Group returns the minus sign of number
192 func (dz *dz_BT) Minus() string {
196 // FmtNumber returns 'num' with digits/precision of 'v' for 'dz_BT' and handles both Whole and Real numbers based on 'v'
197 func (dz *dz_BT) FmtNumber(num float64, v uint64) string {
199 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
200 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
206 b := make([]byte, 0, l)
208 for i := len(s) - 1; i >= 0; i-- {
211 b = append(b, dz.decimal[0])
218 if count == groupThreshold {
219 b = append(b, dz.group[0])
235 b = append(b, dz.minus[0])
239 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
240 b[i], b[j] = b[j], b[i]
246 // FmtPercent returns 'num' with digits/precision of 'v' for 'dz_BT' and handles both Whole and Real numbers based on 'v'
247 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
248 func (dz *dz_BT) FmtPercent(num float64, v uint64) string {
249 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
251 b := make([]byte, 0, l)
253 for i := len(s) - 1; i >= 0; i-- {
256 b = append(b, dz.decimal[0])
264 b = append(b, dz.minus[0])
268 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
269 b[i], b[j] = b[j], b[i]
272 b = append(b, dz.percentSuffix...)
274 b = append(b, dz.percent...)
279 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'dz_BT'
280 func (dz *dz_BT) FmtCurrency(num float64, v uint64, currency currency.Type) string {
282 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
283 symbol := dz.currencies[currency]
284 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
290 b := make([]byte, 0, l)
292 for i := len(s) - 1; i >= 0; i-- {
295 b = append(b, dz.decimal[0])
302 if count == groupThreshold {
303 b = append(b, dz.group[0])
318 for j := len(symbol) - 1; j >= 0; j-- {
319 b = append(b, symbol[j])
323 b = append(b, dz.minus[0])
327 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
328 b[i], b[j] = b[j], b[i]
334 b = append(b, dz.decimal...)
337 for i := 0; i < 2-int(v); i++ {
345 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'dz_BT'
346 // in accounting notation.
347 func (dz *dz_BT) FmtAccounting(num float64, v uint64, currency currency.Type) string {
349 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
350 symbol := dz.currencies[currency]
351 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
357 b := make([]byte, 0, l)
359 for i := len(s) - 1; i >= 0; i-- {
362 b = append(b, dz.decimal[0])
369 if count == groupThreshold {
370 b = append(b, dz.group[0])
387 for j := len(symbol) - 1; j >= 0; j-- {
388 b = append(b, symbol[j])
391 b = append(b, dz.minus[0])
395 for j := len(symbol) - 1; j >= 0; j-- {
396 b = append(b, symbol[j])
402 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
403 b[i], b[j] = b[j], b[i]
409 b = append(b, dz.decimal...)
412 for i := 0; i < 2-int(v); i++ {
420 // FmtDateShort returns the short date representation of 't' for 'dz_BT'
421 func (dz *dz_BT) FmtDateShort(t time.Time) string {
423 b := make([]byte, 0, 32)
426 b = strconv.AppendInt(b, int64(t.Year()), 10)
428 b = strconv.AppendInt(b, int64(-t.Year()), 10)
431 b = append(b, []byte{0x2d}...)
437 b = strconv.AppendInt(b, int64(t.Month()), 10)
439 b = append(b, []byte{0x2d}...)
445 b = strconv.AppendInt(b, int64(t.Day()), 10)
450 // FmtDateMedium returns the medium date representation of 't' for 'dz_BT'
451 func (dz *dz_BT) FmtDateMedium(t time.Time) string {
453 b := make([]byte, 0, 32)
455 b = append(b, []byte{0xe0, 0xbd, 0xa6, 0xe0, 0xbe, 0xa4, 0xe0, 0xbe, 0xb1, 0xe0, 0xbd, 0xb2, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0xa3, 0xe0, 0xbd, 0xbc, 0xe0, 0xbc, 0x8b}...)
458 b = strconv.AppendInt(b, int64(t.Year()), 10)
460 b = strconv.AppendInt(b, int64(-t.Year()), 10)
463 b = append(b, []byte{0x20, 0xe0, 0xbd, 0x9f, 0xe0, 0xbe, 0xb3, 0xe0, 0xbc, 0x8b}...)
464 b = append(b, dz.monthsAbbreviated[t.Month()]...)
465 b = append(b, []byte{0x20, 0xe0, 0xbd, 0x9a, 0xe0, 0xbd, 0xba, 0xe0, 0xbd, 0xa6, 0xe0, 0xbc, 0x8b}...)
471 b = strconv.AppendInt(b, int64(t.Day()), 10)
476 // FmtDateLong returns the long date representation of 't' for 'dz_BT'
477 func (dz *dz_BT) FmtDateLong(t time.Time) string {
479 b := make([]byte, 0, 32)
481 b = append(b, []byte{0xe0, 0xbd, 0xa6, 0xe0, 0xbe, 0xa4, 0xe0, 0xbe, 0xb1, 0xe0, 0xbd, 0xb2, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0xa3, 0xe0, 0xbd, 0xbc, 0xe0, 0xbc, 0x8b}...)
484 b = strconv.AppendInt(b, int64(t.Year()), 10)
486 b = strconv.AppendInt(b, int64(-t.Year()), 10)
489 b = append(b, []byte{0x20}...)
490 b = append(b, dz.monthsWide[t.Month()]...)
491 b = append(b, []byte{0x20, 0xe0, 0xbd, 0x9a, 0xe0, 0xbd, 0xba, 0xe0, 0xbd, 0xa6, 0xe0, 0xbc, 0x8b, 0x20}...)
497 b = strconv.AppendInt(b, int64(t.Day()), 10)
502 // FmtDateFull returns the full date representation of 't' for 'dz_BT'
503 func (dz *dz_BT) FmtDateFull(t time.Time) string {
505 b := make([]byte, 0, 32)
507 b = append(b, dz.daysWide[t.Weekday()]...)
508 b = append(b, []byte{0x2c, 0x20, 0xe0, 0xbd, 0xa6, 0xe0, 0xbe, 0xa4, 0xe0, 0xbe, 0xb1, 0xe0, 0xbd, 0xb2, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0xa3, 0xe0, 0xbd, 0xbc, 0xe0, 0xbc, 0x8b}...)
511 b = strconv.AppendInt(b, int64(t.Year()), 10)
513 b = strconv.AppendInt(b, int64(-t.Year()), 10)
516 b = append(b, []byte{0x20}...)
517 b = append(b, dz.monthsWide[t.Month()]...)
518 b = append(b, []byte{0x20, 0xe0, 0xbd, 0x9a, 0xe0, 0xbd, 0xba, 0xe0, 0xbd, 0xa6, 0xe0, 0xbc, 0x8b}...)
524 b = strconv.AppendInt(b, int64(t.Day()), 10)
529 // FmtTimeShort returns the short time representation of 't' for 'dz_BT'
530 func (dz *dz_BT) FmtTimeShort(t time.Time) string {
532 b := make([]byte, 0, 32)
534 b = append(b, []byte{0xe0, 0xbd, 0x86, 0xe0, 0xbd, 0xb4, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0x9a, 0xe0, 0xbd, 0xbc, 0xe0, 0xbd, 0x91, 0xe0, 0xbc, 0x8b, 0x20}...)
542 b = strconv.AppendInt(b, int64(h), 10)
543 b = append(b, []byte{0x20, 0xe0, 0xbd, 0xa6, 0xe0, 0xbe, 0x90, 0xe0, 0xbd, 0xa2, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0x98, 0xe0, 0xbc, 0x8b, 0x20}...)
549 b = strconv.AppendInt(b, int64(t.Minute()), 10)
550 b = append(b, []byte{0x20}...)
553 b = append(b, dz.periodsAbbreviated[0]...)
555 b = append(b, dz.periodsAbbreviated[1]...)
561 // FmtTimeMedium returns the medium time representation of 't' for 'dz_BT'
562 func (dz *dz_BT) FmtTimeMedium(t time.Time) string {
564 b := make([]byte, 0, 32)
566 b = append(b, []byte{0xe0, 0xbd, 0x86, 0xe0, 0xbd, 0xb4, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0x9a, 0xe0, 0xbd, 0xbc, 0xe0, 0xbd, 0x91, 0xe0, 0xbc, 0x8b}...)
574 b = strconv.AppendInt(b, int64(h), 10)
575 b = append(b, dz.timeSeparator...)
581 b = strconv.AppendInt(b, int64(t.Minute()), 10)
582 b = append(b, dz.timeSeparator...)
588 b = strconv.AppendInt(b, int64(t.Second()), 10)
589 b = append(b, []byte{0x20}...)
592 b = append(b, dz.periodsAbbreviated[0]...)
594 b = append(b, dz.periodsAbbreviated[1]...)
600 // FmtTimeLong returns the long time representation of 't' for 'dz_BT'
601 func (dz *dz_BT) FmtTimeLong(t time.Time) string {
603 b := make([]byte, 0, 32)
605 b = append(b, []byte{0xe0, 0xbd, 0x86, 0xe0, 0xbd, 0xb4, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0x9a, 0xe0, 0xbd, 0xbc, 0xe0, 0xbd, 0x91, 0xe0, 0xbc, 0x8b, 0x20}...)
613 b = strconv.AppendInt(b, int64(h), 10)
614 b = append(b, []byte{0x20, 0xe0, 0xbd, 0xa6, 0xe0, 0xbe, 0x90, 0xe0, 0xbd, 0xa2, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0x98, 0xe0, 0xbc, 0x8b, 0x20}...)
620 b = strconv.AppendInt(b, int64(t.Minute()), 10)
621 b = append(b, dz.timeSeparator...)
627 b = strconv.AppendInt(b, int64(t.Second()), 10)
628 b = append(b, []byte{0x20}...)
631 b = append(b, dz.periodsAbbreviated[0]...)
633 b = append(b, dz.periodsAbbreviated[1]...)
636 b = append(b, []byte{0x20}...)
644 // FmtTimeFull returns the full time representation of 't' for 'dz_BT'
645 func (dz *dz_BT) FmtTimeFull(t time.Time) string {
647 b := make([]byte, 0, 32)
649 b = append(b, []byte{0xe0, 0xbd, 0x86, 0xe0, 0xbd, 0xb4, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0x9a, 0xe0, 0xbd, 0xbc, 0xe0, 0xbd, 0x91, 0xe0, 0xbc, 0x8b, 0x20}...)
657 b = strconv.AppendInt(b, int64(h), 10)
658 b = append(b, []byte{0x20, 0xe0, 0xbd, 0xa6, 0xe0, 0xbe, 0x90, 0xe0, 0xbd, 0xa2, 0xe0, 0xbc, 0x8b, 0xe0, 0xbd, 0x98, 0xe0, 0xbc, 0x8b, 0x20}...)
664 b = strconv.AppendInt(b, int64(t.Minute()), 10)
665 b = append(b, dz.timeSeparator...)
671 b = strconv.AppendInt(b, int64(t.Second()), 10)
672 b = append(b, []byte{0x20}...)
675 b = append(b, dz.periodsAbbreviated[0]...)
677 b = append(b, dz.periodsAbbreviated[1]...)
680 b = append(b, []byte{0x20}...)
684 if btz, ok := dz.timezones[tz]; ok {
685 b = append(b, btz...)