OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-playground / locales / uz_Cyrl / uz_Cyrl.go
1 package uz_Cyrl
2
3 import (
4         "math"
5         "strconv"
6         "time"
7
8         "github.com/go-playground/locales"
9         "github.com/go-playground/locales/currency"
10 )
11
12 type uz_Cyrl struct {
13         locale                 string
14         pluralsCardinal        []locales.PluralRule
15         pluralsOrdinal         []locales.PluralRule
16         pluralsRange           []locales.PluralRule
17         decimal                string
18         group                  string
19         minus                  string
20         percent                string
21         perMille               string
22         timeSeparator          string
23         inifinity              string
24         currencies             []string // idx = enum of currency code
25         currencyPositiveSuffix string
26         currencyNegativeSuffix string
27         monthsAbbreviated      []string
28         monthsNarrow           []string
29         monthsWide             []string
30         daysAbbreviated        []string
31         daysNarrow             []string
32         daysShort              []string
33         daysWide               []string
34         periodsAbbreviated     []string
35         periodsNarrow          []string
36         periodsShort           []string
37         periodsWide            []string
38         erasAbbreviated        []string
39         erasNarrow             []string
40         erasWide               []string
41         timezones              map[string]string
42 }
43
44 // New returns a new instance of translator for the 'uz_Cyrl' locale
45 func New() locales.Translator {
46         return &uz_Cyrl{
47                 locale:                 "uz_Cyrl",
48                 pluralsCardinal:        []locales.PluralRule{2, 6},
49                 pluralsOrdinal:         []locales.PluralRule{6},
50                 pluralsRange:           []locales.PluralRule{2, 6},
51                 decimal:                "٫",
52                 group:                  "٬",
53                 minus:                  "-",
54                 percent:                "٪",
55                 perMille:               "؉",
56                 timeSeparator:          ":",
57                 inifinity:              "∞",
58                 currencies:             []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "A$", "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", "R$", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CA$", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNX", "CN¥", "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", "€", "FIM", "FJD", "FKP", "FRF", "£", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HK$", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "₪", "₹", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JP¥", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "₩", "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", "MX$", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZ$", "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", "฿", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "NT$", "TZS", "UAH", "UAK", "UGS", "UGX", "US$", "USN", "USS", "UYI", "UYP", "UYU", "сўм", "VEB", "VEF", "₫", "VNN", "VUV", "WST", "FCFA", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "EC$", "XDR", "XEU", "XFO", "XFU", "CFA", "XPD", "CFPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"},
59                 currencyPositiveSuffix: " ",
60                 currencyNegativeSuffix: " ",
61                 monthsAbbreviated:      []string{"", "янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек"},
62                 monthsNarrow:           []string{"", "Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"},
63                 monthsWide:             []string{"", "январ", "феврал", "март", "апрел", "май", "июн", "июл", "август", "сентябр", "октябр", "ноябр", "декабр"},
64                 daysAbbreviated:        []string{"якш", "душ", "сеш", "чор", "пай", "жум", "шан"},
65                 daysNarrow:             []string{"Я", "Д", "С", "Ч", "П", "Ж", "Ш"},
66                 daysShort:              []string{"Як", "Ду", "Се", "Чо", "Па", "Жу", "Ша"},
67                 daysWide:               []string{"якшанба", "душанба", "сешанба", "чоршанба", "пайшанба", "жума", "шанба"},
68                 periodsAbbreviated:     []string{"ТО", "ТК"},
69                 periodsNarrow:          []string{"ТО", "ТК"},
70                 periodsWide:            []string{"ТО", "ТК"},
71                 erasAbbreviated:        []string{"", ""},
72                 erasNarrow:             []string{"", ""},
73                 erasWide:               []string{"", ""},
74                 timezones:              map[string]string{"HNNOMX": "Shimoli-g‘arbiy Meksika standart vaqti", "EDT": "Шимолий Америка шарқий кундузги вақти", "ECT": "Эквадор вақти", "AKST": "Аляска стандарт вақти", "WESZ": "Ғарбий Европа ёзги вақти", "HNPMX": "Meksika Tinch okeani standart vaqti", "WIB": "Ғарбий Индонезия вақти", "PST": "Шимолий Америка тинч океани стандарт вақти", "CHAST": "Чатхам стандарт вақти", "CLT": "Чили стандарт вақти", "GYT": "Гайана вақти", "TMT": "Туркманистон стандарт вақти", "WITA": "Марказий Индонезия вақти", "AST": "Атлантика стандарт вақти", "ChST": "Каморро вақти", "AWDT": "Ғарбий Австралия кундузги вақти", "CDT": "Шимолий Америка марказий кундузги вақти", "VET": "Венесуэла вақти", "LHST": "Лорд Хове стандарт вақти", "IST": "Ҳиндистон вақти", "HAT": "Ньюфаундленд кундузги вақти", "HEPMX": "Meksika Tinch okeani yozgi vaqti", "WAT": "Ғарбий Африка стандарт вақти", "EAT": "Шарқий Африка вақти", "HAST": "Гавайи-алеут стандарт вақти", "HADT": "Гавайи-алеут кундузги вақти", "WAST": "Ғарбий Африка ёзги вақти", "CAT": "Марказий Африка вақти", "WIT": "Шарқий Индонезия вақти", "ACWST": "Марказий Австралия Ғарбий стандарт вақти", "NZST": "Янги Зеландия стандарт вақти", "TMST": "Туркманистон ёзги вақти", "HENOMX": "Shimoli-g‘arbiy Meksika yozgi vaqti", "LHDT": "Лорд Хове кундузги вақти", "ARST": "Аргентина ёзги вақти", "HNCU": "Куба стандарт вақти", "SRT": "Суринам вақти", "SGT": "Сингапур вақти", "WEZ": "Ғарбий Европа стандарт вақти", "MYT": "Малайзия вақти", "HEEG": "Шарқий Гренландия ёзги вақти", "COST": "Колумбия ёзги вақти", "HNT": "Ньюфаундленд стандарт вақти", "HNPM": "Сент-Пьер ва Микелон стандарт вақти", "WART": "Ғарбий Аргентина стандарт вақти", "JST": "Япония стандарт вақти", "HNOG": "Ғарбий Гренландия стандарт вақти", "AEST": "Шарқий Австралия стандарт вақти", "HKST": "Гонконг ёзги вақти", "EST": "Шимолий Америка шарқий стандарт вақти", "MESZ": "Марказий Европа ёзги вақти", "WARST": "Ғарбий Аргентина ёзги вақти", "HEOG": "Ғарбий Гренландия ёзги вақти", "HECU": "Куба кундузги вақти", "MDT": "MDT", "MST": "MST", "OEZ": "Шарқий Европа стандарт вақти", "AEDT": "Шарқий Австралия кундузги вақти", "COT": "Колумбия стандарт вақти", "BT": "Бутан вақти", "HNEG": "Шарқий Гренландия стандарт вақти", "HEPM": "Сент-Пьер ва Микелон кундузги вақти", "NZDT": "Янги Зеландия кундузги вақти", "BOT": "Боливия вақти", "UYT": "Уругвай стандарт вақти", "AKDT": "Аляска кундузги вақти", "PDT": "Шимолий Америка тинч океани кундузги вақти", "GMT": "Гринвич вақти", "CHADT": "Чатхам кундузги вақти", "AWST": "Ғарбий Австралия стандарт вақти", "JDT": "Япония кундузги вақти", "ART": "Аргентина стандарт вақти", "GFT": "Француз Гвианаси вақти", "HKT": "Гонконг стандарт вақти", "CST": "Шимолий Америка марказий стандарт вақти", "SAST": "Жанубий Африка вақти", "∅∅∅": "Амазонка ёзги вақти", "UYST": "Уругвай ёзги вақти", "ACDT": "Марказий Австралия кундузги вақти", "ACWDT": "Марказий Австралия Ғарбий кундузги вақти", "MEZ": "Марказий Европа стандарт вақти", "OESZ": "Шарқий Европа ёзги вақти", "ADT": "Атлантика кундузги вақти", "CLST": "Чили ёзги вақти", "ACST": "Марказий Австралия стандарт вақти"},
75         }
76 }
77
78 // Locale returns the current translators string locale
79 func (uz *uz_Cyrl) Locale() string {
80         return uz.locale
81 }
82
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'uz_Cyrl'
84 func (uz *uz_Cyrl) PluralsCardinal() []locales.PluralRule {
85         return uz.pluralsCardinal
86 }
87
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'uz_Cyrl'
89 func (uz *uz_Cyrl) PluralsOrdinal() []locales.PluralRule {
90         return uz.pluralsOrdinal
91 }
92
93 // PluralsRange returns the list of range plural rules associated with 'uz_Cyrl'
94 func (uz *uz_Cyrl) PluralsRange() []locales.PluralRule {
95         return uz.pluralsRange
96 }
97
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'uz_Cyrl'
99 func (uz *uz_Cyrl) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
100
101         n := math.Abs(num)
102
103         if n == 1 {
104                 return locales.PluralRuleOne
105         }
106
107         return locales.PluralRuleOther
108 }
109
110 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'uz_Cyrl'
111 func (uz *uz_Cyrl) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
112         return locales.PluralRuleOther
113 }
114
115 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'uz_Cyrl'
116 func (uz *uz_Cyrl) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
117
118         start := uz.CardinalPluralRule(num1, v1)
119         end := uz.CardinalPluralRule(num2, v2)
120
121         if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
122                 return locales.PluralRuleOther
123         } else if start == locales.PluralRuleOther && end == locales.PluralRuleOne {
124                 return locales.PluralRuleOne
125         }
126
127         return locales.PluralRuleOther
128
129 }
130
131 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
132 func (uz *uz_Cyrl) MonthAbbreviated(month time.Month) string {
133         return uz.monthsAbbreviated[month]
134 }
135
136 // MonthsAbbreviated returns the locales abbreviated months
137 func (uz *uz_Cyrl) MonthsAbbreviated() []string {
138         return uz.monthsAbbreviated[1:]
139 }
140
141 // MonthNarrow returns the locales narrow month given the 'month' provided
142 func (uz *uz_Cyrl) MonthNarrow(month time.Month) string {
143         return uz.monthsNarrow[month]
144 }
145
146 // MonthsNarrow returns the locales narrow months
147 func (uz *uz_Cyrl) MonthsNarrow() []string {
148         return uz.monthsNarrow[1:]
149 }
150
151 // MonthWide returns the locales wide month given the 'month' provided
152 func (uz *uz_Cyrl) MonthWide(month time.Month) string {
153         return uz.monthsWide[month]
154 }
155
156 // MonthsWide returns the locales wide months
157 func (uz *uz_Cyrl) MonthsWide() []string {
158         return uz.monthsWide[1:]
159 }
160
161 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
162 func (uz *uz_Cyrl) WeekdayAbbreviated(weekday time.Weekday) string {
163         return uz.daysAbbreviated[weekday]
164 }
165
166 // WeekdaysAbbreviated returns the locales abbreviated weekdays
167 func (uz *uz_Cyrl) WeekdaysAbbreviated() []string {
168         return uz.daysAbbreviated
169 }
170
171 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
172 func (uz *uz_Cyrl) WeekdayNarrow(weekday time.Weekday) string {
173         return uz.daysNarrow[weekday]
174 }
175
176 // WeekdaysNarrow returns the locales narrow weekdays
177 func (uz *uz_Cyrl) WeekdaysNarrow() []string {
178         return uz.daysNarrow
179 }
180
181 // WeekdayShort returns the locales short weekday given the 'weekday' provided
182 func (uz *uz_Cyrl) WeekdayShort(weekday time.Weekday) string {
183         return uz.daysShort[weekday]
184 }
185
186 // WeekdaysShort returns the locales short weekdays
187 func (uz *uz_Cyrl) WeekdaysShort() []string {
188         return uz.daysShort
189 }
190
191 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
192 func (uz *uz_Cyrl) WeekdayWide(weekday time.Weekday) string {
193         return uz.daysWide[weekday]
194 }
195
196 // WeekdaysWide returns the locales wide weekdays
197 func (uz *uz_Cyrl) WeekdaysWide() []string {
198         return uz.daysWide
199 }
200
201 // Decimal returns the decimal point of number
202 func (uz *uz_Cyrl) Decimal() string {
203         return uz.decimal
204 }
205
206 // Group returns the group of number
207 func (uz *uz_Cyrl) Group() string {
208         return uz.group
209 }
210
211 // Group returns the minus sign of number
212 func (uz *uz_Cyrl) Minus() string {
213         return uz.minus
214 }
215
216 // FmtNumber returns 'num' with digits/precision of 'v' for 'uz_Cyrl' and handles both Whole and Real numbers based on 'v'
217 func (uz *uz_Cyrl) FmtNumber(num float64, v uint64) string {
218
219         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
220         l := len(s) + 3 + 2*len(s[:len(s)-int(v)-1])/3
221         count := 0
222         inWhole := v == 0
223         b := make([]byte, 0, l)
224
225         for i := len(s) - 1; i >= 0; i-- {
226
227                 if s[i] == '.' {
228                         for j := len(uz.decimal) - 1; j >= 0; j-- {
229                                 b = append(b, uz.decimal[j])
230                         }
231                         inWhole = true
232                         continue
233                 }
234
235                 if inWhole {
236                         if count == 3 {
237                                 for j := len(uz.group) - 1; j >= 0; j-- {
238                                         b = append(b, uz.group[j])
239                                 }
240                                 count = 1
241                         } else {
242                                 count++
243                         }
244                 }
245
246                 b = append(b, s[i])
247         }
248
249         if num < 0 {
250                 b = append(b, uz.minus[0])
251         }
252
253         // reverse
254         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
255                 b[i], b[j] = b[j], b[i]
256         }
257
258         return string(b)
259 }
260
261 // FmtPercent returns 'num' with digits/precision of 'v' for 'uz_Cyrl' and handles both Whole and Real numbers based on 'v'
262 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
263 func (uz *uz_Cyrl) FmtPercent(num float64, v uint64) string {
264         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
265         l := len(s) + 5
266         b := make([]byte, 0, l)
267
268         for i := len(s) - 1; i >= 0; i-- {
269
270                 if s[i] == '.' {
271                         for j := len(uz.decimal) - 1; j >= 0; j-- {
272                                 b = append(b, uz.decimal[j])
273                         }
274                         continue
275                 }
276
277                 b = append(b, s[i])
278         }
279
280         if num < 0 {
281                 b = append(b, uz.minus[0])
282         }
283
284         // reverse
285         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
286                 b[i], b[j] = b[j], b[i]
287         }
288
289         b = append(b, uz.percent...)
290
291         return string(b)
292 }
293
294 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'uz_Cyrl'
295 func (uz *uz_Cyrl) FmtCurrency(num float64, v uint64, currency currency.Type) string {
296
297         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
298         symbol := uz.currencies[currency]
299         l := len(s) + len(symbol) + 5 + 2*len(s[:len(s)-int(v)-1])/3
300         count := 0
301         inWhole := v == 0
302         b := make([]byte, 0, l)
303
304         for i := len(s) - 1; i >= 0; i-- {
305
306                 if s[i] == '.' {
307                         for j := len(uz.decimal) - 1; j >= 0; j-- {
308                                 b = append(b, uz.decimal[j])
309                         }
310                         inWhole = true
311                         continue
312                 }
313
314                 if inWhole {
315                         if count == 3 {
316                                 for j := len(uz.group) - 1; j >= 0; j-- {
317                                         b = append(b, uz.group[j])
318                                 }
319                                 count = 1
320                         } else {
321                                 count++
322                         }
323                 }
324
325                 b = append(b, s[i])
326         }
327
328         if num < 0 {
329                 b = append(b, uz.minus[0])
330         }
331
332         // reverse
333         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
334                 b[i], b[j] = b[j], b[i]
335         }
336
337         if int(v) < 2 {
338
339                 if v == 0 {
340                         b = append(b, uz.decimal...)
341                 }
342
343                 for i := 0; i < 2-int(v); i++ {
344                         b = append(b, '0')
345                 }
346         }
347
348         b = append(b, uz.currencyPositiveSuffix...)
349
350         b = append(b, symbol...)
351
352         return string(b)
353 }
354
355 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'uz_Cyrl'
356 // in accounting notation.
357 func (uz *uz_Cyrl) FmtAccounting(num float64, v uint64, currency currency.Type) string {
358
359         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
360         symbol := uz.currencies[currency]
361         l := len(s) + len(symbol) + 5 + 2*len(s[:len(s)-int(v)-1])/3
362         count := 0
363         inWhole := v == 0
364         b := make([]byte, 0, l)
365
366         for i := len(s) - 1; i >= 0; i-- {
367
368                 if s[i] == '.' {
369                         for j := len(uz.decimal) - 1; j >= 0; j-- {
370                                 b = append(b, uz.decimal[j])
371                         }
372                         inWhole = true
373                         continue
374                 }
375
376                 if inWhole {
377                         if count == 3 {
378                                 for j := len(uz.group) - 1; j >= 0; j-- {
379                                         b = append(b, uz.group[j])
380                                 }
381                                 count = 1
382                         } else {
383                                 count++
384                         }
385                 }
386
387                 b = append(b, s[i])
388         }
389
390         if num < 0 {
391
392                 b = append(b, uz.minus[0])
393
394         }
395
396         // reverse
397         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
398                 b[i], b[j] = b[j], b[i]
399         }
400
401         if int(v) < 2 {
402
403                 if v == 0 {
404                         b = append(b, uz.decimal...)
405                 }
406
407                 for i := 0; i < 2-int(v); i++ {
408                         b = append(b, '0')
409                 }
410         }
411
412         if num < 0 {
413                 b = append(b, uz.currencyNegativeSuffix...)
414                 b = append(b, symbol...)
415         } else {
416
417                 b = append(b, uz.currencyPositiveSuffix...)
418                 b = append(b, symbol...)
419         }
420
421         return string(b)
422 }
423
424 // FmtDateShort returns the short date representation of 't' for 'uz_Cyrl'
425 func (uz *uz_Cyrl) FmtDateShort(t time.Time) string {
426
427         b := make([]byte, 0, 32)
428
429         if t.Day() < 10 {
430                 b = append(b, '0')
431         }
432
433         b = strconv.AppendInt(b, int64(t.Day()), 10)
434         b = append(b, []byte{0x2f}...)
435
436         if t.Month() < 10 {
437                 b = append(b, '0')
438         }
439
440         b = strconv.AppendInt(b, int64(t.Month()), 10)
441
442         b = append(b, []byte{0x2f}...)
443
444         if t.Year() > 9 {
445                 b = append(b, strconv.Itoa(t.Year())[2:]...)
446         } else {
447                 b = append(b, strconv.Itoa(t.Year())[1:]...)
448         }
449
450         return string(b)
451 }
452
453 // FmtDateMedium returns the medium date representation of 't' for 'uz_Cyrl'
454 func (uz *uz_Cyrl) FmtDateMedium(t time.Time) string {
455
456         b := make([]byte, 0, 32)
457
458         b = strconv.AppendInt(b, int64(t.Day()), 10)
459         b = append(b, []byte{0x20}...)
460         b = append(b, uz.monthsAbbreviated[t.Month()]...)
461         b = append(b, []byte{0x2c, 0x20}...)
462
463         if t.Year() > 0 {
464                 b = strconv.AppendInt(b, int64(t.Year()), 10)
465         } else {
466                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
467         }
468
469         return string(b)
470 }
471
472 // FmtDateLong returns the long date representation of 't' for 'uz_Cyrl'
473 func (uz *uz_Cyrl) FmtDateLong(t time.Time) string {
474
475         b := make([]byte, 0, 32)
476
477         b = strconv.AppendInt(b, int64(t.Day()), 10)
478         b = append(b, []byte{0x20}...)
479         b = append(b, uz.monthsWide[t.Month()]...)
480         b = append(b, []byte{0x2c, 0x20}...)
481
482         if t.Year() > 0 {
483                 b = strconv.AppendInt(b, int64(t.Year()), 10)
484         } else {
485                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
486         }
487
488         return string(b)
489 }
490
491 // FmtDateFull returns the full date representation of 't' for 'uz_Cyrl'
492 func (uz *uz_Cyrl) FmtDateFull(t time.Time) string {
493
494         b := make([]byte, 0, 32)
495
496         b = append(b, uz.daysWide[t.Weekday()]...)
497         b = append(b, []byte{0x2c, 0x20}...)
498
499         if t.Day() < 10 {
500                 b = append(b, '0')
501         }
502
503         b = strconv.AppendInt(b, int64(t.Day()), 10)
504         b = append(b, []byte{0x20}...)
505         b = append(b, uz.monthsWide[t.Month()]...)
506         b = append(b, []byte{0x2c, 0x20}...)
507
508         if t.Year() > 0 {
509                 b = strconv.AppendInt(b, int64(t.Year()), 10)
510         } else {
511                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
512         }
513
514         return string(b)
515 }
516
517 // FmtTimeShort returns the short time representation of 't' for 'uz_Cyrl'
518 func (uz *uz_Cyrl) FmtTimeShort(t time.Time) string {
519
520         b := make([]byte, 0, 32)
521
522         if t.Hour() < 10 {
523                 b = append(b, '0')
524         }
525
526         b = strconv.AppendInt(b, int64(t.Hour()), 10)
527         b = append(b, uz.timeSeparator...)
528
529         if t.Minute() < 10 {
530                 b = append(b, '0')
531         }
532
533         b = strconv.AppendInt(b, int64(t.Minute()), 10)
534
535         return string(b)
536 }
537
538 // FmtTimeMedium returns the medium time representation of 't' for 'uz_Cyrl'
539 func (uz *uz_Cyrl) FmtTimeMedium(t time.Time) string {
540
541         b := make([]byte, 0, 32)
542
543         if t.Hour() < 10 {
544                 b = append(b, '0')
545         }
546
547         b = strconv.AppendInt(b, int64(t.Hour()), 10)
548         b = append(b, uz.timeSeparator...)
549
550         if t.Minute() < 10 {
551                 b = append(b, '0')
552         }
553
554         b = strconv.AppendInt(b, int64(t.Minute()), 10)
555         b = append(b, uz.timeSeparator...)
556
557         if t.Second() < 10 {
558                 b = append(b, '0')
559         }
560
561         b = strconv.AppendInt(b, int64(t.Second()), 10)
562
563         return string(b)
564 }
565
566 // FmtTimeLong returns the long time representation of 't' for 'uz_Cyrl'
567 func (uz *uz_Cyrl) FmtTimeLong(t time.Time) string {
568
569         b := make([]byte, 0, 32)
570
571         if t.Hour() < 10 {
572                 b = append(b, '0')
573         }
574
575         b = strconv.AppendInt(b, int64(t.Hour()), 10)
576         b = append(b, uz.timeSeparator...)
577
578         if t.Minute() < 10 {
579                 b = append(b, '0')
580         }
581
582         b = strconv.AppendInt(b, int64(t.Minute()), 10)
583         b = append(b, uz.timeSeparator...)
584
585         if t.Second() < 10 {
586                 b = append(b, '0')
587         }
588
589         b = strconv.AppendInt(b, int64(t.Second()), 10)
590         b = append(b, []byte{0x20, 0x28}...)
591
592         tz, _ := t.Zone()
593         b = append(b, tz...)
594
595         b = append(b, []byte{0x29}...)
596
597         return string(b)
598 }
599
600 // FmtTimeFull returns the full time representation of 't' for 'uz_Cyrl'
601 func (uz *uz_Cyrl) FmtTimeFull(t time.Time) string {
602
603         b := make([]byte, 0, 32)
604
605         if t.Hour() < 10 {
606                 b = append(b, '0')
607         }
608
609         b = strconv.AppendInt(b, int64(t.Hour()), 10)
610         b = append(b, uz.timeSeparator...)
611
612         if t.Minute() < 10 {
613                 b = append(b, '0')
614         }
615
616         b = strconv.AppendInt(b, int64(t.Minute()), 10)
617         b = append(b, uz.timeSeparator...)
618
619         if t.Second() < 10 {
620                 b = append(b, '0')
621         }
622
623         b = strconv.AppendInt(b, int64(t.Second()), 10)
624         b = append(b, []byte{0x20, 0x28}...)
625
626         tz, _ := t.Zone()
627
628         if btz, ok := uz.timezones[tz]; ok {
629                 b = append(b, btz...)
630         } else {
631                 b = append(b, tz...)
632         }
633
634         b = append(b, []byte{0x29}...)
635
636         return string(b)
637 }