OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-playground / locales / uz_Latn / uz_Latn.go
1 package uz_Latn
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_Latn 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_Latn' locale
45 func New() locales.Translator {
46         return &uz_Latn{
47                 locale:                 "uz_Latn",
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", "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                 currencyPositiveSuffix: " ",
60                 currencyNegativeSuffix: " ",
61                 monthsAbbreviated:      []string{"", "yan", "fev", "mar", "apr", "may", "iyn", "iyl", "avg", "sen", "okt", "noy", "dek"},
62                 monthsNarrow:           []string{"", "Y", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D"},
63                 monthsWide:             []string{"", "yanvar", "fevral", "mart", "aprel", "may", "iyun", "iyul", "avgust", "sentabr", "oktabr", "noyabr", "dekabr"},
64                 daysAbbreviated:        []string{"Yak", "Dush", "Sesh", "Chor", "Pay", "Jum", "Shan"},
65                 daysNarrow:             []string{"Y", "D", "S", "C", "P", "J", "S"},
66                 daysShort:              []string{"Ya", "Du", "Se", "Ch", "Pa", "Ju", "Sh"},
67                 daysWide:               []string{"yakshanba", "dushanba", "seshanba", "chorshanba", "payshanba", "juma", "shanba"},
68                 periodsAbbreviated:     []string{"TO", "TK"},
69                 periodsNarrow:          []string{"TO", "TK"},
70                 periodsWide:            []string{"TO", "TK"},
71                 erasAbbreviated:        []string{"m.a.", "milodiy"},
72                 erasNarrow:             []string{"", ""},
73                 erasWide:               []string{"", ""},
74                 timezones:              map[string]string{"ACWST": "Markaziy Avstraliya g‘arbiy standart vaqti", "NZST": "Yangi Zelandiya standart vaqti", "VET": "Venesuela vaqti", "GFT": "Fransuz Gvianasi vaqti", "GMT": "Grinvich o‘rtacha vaqti", "HNPMX": "Meksika Tinch okeani standart vaqti", "PDT": "Tinch okeani yozgi vaqti", "HEPM": "Sen-Pyer va Mikelon yozgi vaqti", "CDT": "Markaziy Amerika yozgi vaqti", "MDT": "MDT", "MESZ": "Markaziy Yevropa yozgi vaqti", "JDT": "Yaponiya yozgi vaqti", "ARST": "Argentina yozgi vaqti", "HKT": "Gonkong standart vaqti", "CAT": "Markaziy Afrika vaqti", "AWDT": "G‘arbiy Avstraliya yozgi vaqti", "MYT": "Malayziya vaqti", "WIT": "Sharqiy Indoneziya vaqti", "ACDT": "Markaziy Avstraliya yozgi vaqti", "CHADT": "Chatem yozgi vaqti", "UYST": "Urugvay yozgi vaqti", "HENOMX": "Shimoli-g‘arbiy Meksika yozgi vaqti", "HNEG": "Sharqiy Grenlandiya standart vaqti", "CLST": "Chili yozgi vaqti", "HNNOMX": "Shimoli-g‘arbiy Meksika standart vaqti", "WAT": "Gʻarbiy Afrika standart vaqti", "AKST": "Alyaska standart vaqti", "HEPMX": "Meksika Tinch okeani yozgi vaqti", "WIB": "Gʻarbiy Indoneziya vaqti", "SRT": "Surinam vaqti", "WITA": "Markaziy Indoneziya vaqti", "ART": "Argentina standart vaqti", "EAT": "Sharqiy Afrika vaqti", "HNCU": "Kuba standart vaqti", "HADT": "Gavayi-aleut yozgi vaqti", "TMT": "Turkmaniston standart vaqti", "JST": "Yaponiya standart vaqti", "WARST": "Gʻarbiy Argentina yozgi vaqti", "WAST": "Gʻarbiy Afrika yozgi vaqti", "HNT": "Nyufaundlend standart vaqti", "COT": "Kolumbiya standart vaqti", "GYT": "Gayana vaqti", "ECT": "Ekvador vaqti", "PST": "Tinch okeani standart vaqti", "BT": "Butan vaqti", "BOT": "Boliviya vaqti", "AEST": "Sharqiy Avstraliya standart vaqti", "HAT": "Nyufaundlend yozgi vaqti", "ACST": "Markaziy Avstraliya standart vaqti", "WESZ": "G‘arbiy Yevropa yozgi vaqti", "MST": "MST", "UYT": "Urugvay standart vaqti", "IST": "Hindiston vaqti", "MEZ": "Markaziy Yevropa standart vaqti", "HEOG": "G‘arbiy Grenlandiya yozgi vaqti", "WEZ": "G‘arbiy Yevropa standart vaqti", "SGT": "Singapur vaqti", "HAST": "Gavayi-aleut standart vaqti", "TMST": "Turkmaniston yozgi vaqti", "OEZ": "Sharqiy Yevropa standart vaqti", "LHST": "Lord-Xau standart vaqti", "ChST": "Chamorro standart vaqti", "NZDT": "Yangi Zelandiya yozgi vaqti", "COST": "Kolumbiya yozgi vaqti", "LHDT": "Lord-Xau yozgi vaqti", "ADT": "Atlantika yozgi vaqti", "HKST": "Gonkong yozgi vaqti", "EST": "Sharqiy Amerika standart vaqti", "∅∅∅": "Peru yozgi vaqti", "HEEG": "Sharqiy Grenlandiya yozgi vaqti", "EDT": "Sharqiy Amerika yozgi vaqti", "AKDT": "Alyaska yozgi vaqti", "CHAST": "Chatem standart vaqti", "HNPM": "Sen-Pyer va Mikelon standart vaqti", "CST": "Markaziy Amerika standart vaqti", "AWST": "G‘arbiy Avstraliya standart vaqti", "HNOG": "G‘arbiy Grenlandiya standart vaqti", "SAST": "Janubiy Afrika standart vaqti", "CLT": "Chili standart vaqti", "HECU": "Kuba yozgi vaqti", "ACWDT": "Markaziy Avstraliya g‘arbiy yozgi vaqti", "OESZ": "Sharqiy Yevropa yozgi vaqti", "WART": "Gʻarbiy Argentina standart vaqti", "AST": "Atlantika standart vaqti", "AEDT": "Sharqiy Avstraliya yozgi vaqti"},
75         }
76 }
77
78 // Locale returns the current translators string locale
79 func (uz *uz_Latn) Locale() string {
80         return uz.locale
81 }
82
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'uz_Latn'
84 func (uz *uz_Latn) PluralsCardinal() []locales.PluralRule {
85         return uz.pluralsCardinal
86 }
87
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'uz_Latn'
89 func (uz *uz_Latn) PluralsOrdinal() []locales.PluralRule {
90         return uz.pluralsOrdinal
91 }
92
93 // PluralsRange returns the list of range plural rules associated with 'uz_Latn'
94 func (uz *uz_Latn) PluralsRange() []locales.PluralRule {
95         return uz.pluralsRange
96 }
97
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'uz_Latn'
99 func (uz *uz_Latn) 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_Latn'
111 func (uz *uz_Latn) 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_Latn'
116 func (uz *uz_Latn) 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_Latn) MonthAbbreviated(month time.Month) string {
133         return uz.monthsAbbreviated[month]
134 }
135
136 // MonthsAbbreviated returns the locales abbreviated months
137 func (uz *uz_Latn) MonthsAbbreviated() []string {
138         return uz.monthsAbbreviated[1:]
139 }
140
141 // MonthNarrow returns the locales narrow month given the 'month' provided
142 func (uz *uz_Latn) MonthNarrow(month time.Month) string {
143         return uz.monthsNarrow[month]
144 }
145
146 // MonthsNarrow returns the locales narrow months
147 func (uz *uz_Latn) MonthsNarrow() []string {
148         return uz.monthsNarrow[1:]
149 }
150
151 // MonthWide returns the locales wide month given the 'month' provided
152 func (uz *uz_Latn) MonthWide(month time.Month) string {
153         return uz.monthsWide[month]
154 }
155
156 // MonthsWide returns the locales wide months
157 func (uz *uz_Latn) MonthsWide() []string {
158         return uz.monthsWide[1:]
159 }
160
161 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
162 func (uz *uz_Latn) WeekdayAbbreviated(weekday time.Weekday) string {
163         return uz.daysAbbreviated[weekday]
164 }
165
166 // WeekdaysAbbreviated returns the locales abbreviated weekdays
167 func (uz *uz_Latn) WeekdaysAbbreviated() []string {
168         return uz.daysAbbreviated
169 }
170
171 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
172 func (uz *uz_Latn) WeekdayNarrow(weekday time.Weekday) string {
173         return uz.daysNarrow[weekday]
174 }
175
176 // WeekdaysNarrow returns the locales narrow weekdays
177 func (uz *uz_Latn) WeekdaysNarrow() []string {
178         return uz.daysNarrow
179 }
180
181 // WeekdayShort returns the locales short weekday given the 'weekday' provided
182 func (uz *uz_Latn) WeekdayShort(weekday time.Weekday) string {
183         return uz.daysShort[weekday]
184 }
185
186 // WeekdaysShort returns the locales short weekdays
187 func (uz *uz_Latn) WeekdaysShort() []string {
188         return uz.daysShort
189 }
190
191 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
192 func (uz *uz_Latn) WeekdayWide(weekday time.Weekday) string {
193         return uz.daysWide[weekday]
194 }
195
196 // WeekdaysWide returns the locales wide weekdays
197 func (uz *uz_Latn) WeekdaysWide() []string {
198         return uz.daysWide
199 }
200
201 // Decimal returns the decimal point of number
202 func (uz *uz_Latn) Decimal() string {
203         return uz.decimal
204 }
205
206 // Group returns the group of number
207 func (uz *uz_Latn) Group() string {
208         return uz.group
209 }
210
211 // Group returns the minus sign of number
212 func (uz *uz_Latn) Minus() string {
213         return uz.minus
214 }
215
216 // FmtNumber returns 'num' with digits/precision of 'v' for 'uz_Latn' and handles both Whole and Real numbers based on 'v'
217 func (uz *uz_Latn) FmtNumber(num float64, v uint64) string {
218
219         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
220         l := len(s) + 2 + 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                         b = append(b, uz.decimal[0])
229                         inWhole = true
230                         continue
231                 }
232
233                 if inWhole {
234                         if count == 3 {
235                                 for j := len(uz.group) - 1; j >= 0; j-- {
236                                         b = append(b, uz.group[j])
237                                 }
238                                 count = 1
239                         } else {
240                                 count++
241                         }
242                 }
243
244                 b = append(b, s[i])
245         }
246
247         if num < 0 {
248                 b = append(b, uz.minus[0])
249         }
250
251         // reverse
252         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
253                 b[i], b[j] = b[j], b[i]
254         }
255
256         return string(b)
257 }
258
259 // FmtPercent returns 'num' with digits/precision of 'v' for 'uz_Latn' and handles both Whole and Real numbers based on 'v'
260 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
261 func (uz *uz_Latn) FmtPercent(num float64, v uint64) string {
262         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
263         l := len(s) + 3
264         b := make([]byte, 0, l)
265
266         for i := len(s) - 1; i >= 0; i-- {
267
268                 if s[i] == '.' {
269                         b = append(b, uz.decimal[0])
270                         continue
271                 }
272
273                 b = append(b, s[i])
274         }
275
276         if num < 0 {
277                 b = append(b, uz.minus[0])
278         }
279
280         // reverse
281         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
282                 b[i], b[j] = b[j], b[i]
283         }
284
285         b = append(b, uz.percent...)
286
287         return string(b)
288 }
289
290 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'uz_Latn'
291 func (uz *uz_Latn) FmtCurrency(num float64, v uint64, currency currency.Type) string {
292
293         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
294         symbol := uz.currencies[currency]
295         l := len(s) + len(symbol) + 4 + 2*len(s[:len(s)-int(v)-1])/3
296         count := 0
297         inWhole := v == 0
298         b := make([]byte, 0, l)
299
300         for i := len(s) - 1; i >= 0; i-- {
301
302                 if s[i] == '.' {
303                         b = append(b, uz.decimal[0])
304                         inWhole = true
305                         continue
306                 }
307
308                 if inWhole {
309                         if count == 3 {
310                                 for j := len(uz.group) - 1; j >= 0; j-- {
311                                         b = append(b, uz.group[j])
312                                 }
313                                 count = 1
314                         } else {
315                                 count++
316                         }
317                 }
318
319                 b = append(b, s[i])
320         }
321
322         if num < 0 {
323                 b = append(b, uz.minus[0])
324         }
325
326         // reverse
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]
329         }
330
331         if int(v) < 2 {
332
333                 if v == 0 {
334                         b = append(b, uz.decimal...)
335                 }
336
337                 for i := 0; i < 2-int(v); i++ {
338                         b = append(b, '0')
339                 }
340         }
341
342         b = append(b, uz.currencyPositiveSuffix...)
343
344         b = append(b, symbol...)
345
346         return string(b)
347 }
348
349 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'uz_Latn'
350 // in accounting notation.
351 func (uz *uz_Latn) FmtAccounting(num float64, v uint64, currency currency.Type) string {
352
353         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
354         symbol := uz.currencies[currency]
355         l := len(s) + len(symbol) + 4 + 2*len(s[:len(s)-int(v)-1])/3
356         count := 0
357         inWhole := v == 0
358         b := make([]byte, 0, l)
359
360         for i := len(s) - 1; i >= 0; i-- {
361
362                 if s[i] == '.' {
363                         b = append(b, uz.decimal[0])
364                         inWhole = true
365                         continue
366                 }
367
368                 if inWhole {
369                         if count == 3 {
370                                 for j := len(uz.group) - 1; j >= 0; j-- {
371                                         b = append(b, uz.group[j])
372                                 }
373                                 count = 1
374                         } else {
375                                 count++
376                         }
377                 }
378
379                 b = append(b, s[i])
380         }
381
382         if num < 0 {
383
384                 b = append(b, uz.minus[0])
385
386         }
387
388         // reverse
389         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
390                 b[i], b[j] = b[j], b[i]
391         }
392
393         if int(v) < 2 {
394
395                 if v == 0 {
396                         b = append(b, uz.decimal...)
397                 }
398
399                 for i := 0; i < 2-int(v); i++ {
400                         b = append(b, '0')
401                 }
402         }
403
404         if num < 0 {
405                 b = append(b, uz.currencyNegativeSuffix...)
406                 b = append(b, symbol...)
407         } else {
408
409                 b = append(b, uz.currencyPositiveSuffix...)
410                 b = append(b, symbol...)
411         }
412
413         return string(b)
414 }
415
416 // FmtDateShort returns the short date representation of 't' for 'uz_Latn'
417 func (uz *uz_Latn) FmtDateShort(t time.Time) string {
418
419         b := make([]byte, 0, 32)
420
421         if t.Day() < 10 {
422                 b = append(b, '0')
423         }
424
425         b = strconv.AppendInt(b, int64(t.Day()), 10)
426         b = append(b, []byte{0x2f}...)
427
428         if t.Month() < 10 {
429                 b = append(b, '0')
430         }
431
432         b = strconv.AppendInt(b, int64(t.Month()), 10)
433
434         b = append(b, []byte{0x2f}...)
435
436         if t.Year() > 9 {
437                 b = append(b, strconv.Itoa(t.Year())[2:]...)
438         } else {
439                 b = append(b, strconv.Itoa(t.Year())[1:]...)
440         }
441
442         return string(b)
443 }
444
445 // FmtDateMedium returns the medium date representation of 't' for 'uz_Latn'
446 func (uz *uz_Latn) FmtDateMedium(t time.Time) string {
447
448         b := make([]byte, 0, 32)
449
450         b = strconv.AppendInt(b, int64(t.Day()), 10)
451         b = append(b, []byte{0x2d}...)
452         b = append(b, uz.monthsAbbreviated[t.Month()]...)
453         b = append(b, []byte{0x2c, 0x20}...)
454
455         if t.Year() > 0 {
456                 b = strconv.AppendInt(b, int64(t.Year()), 10)
457         } else {
458                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
459         }
460
461         return string(b)
462 }
463
464 // FmtDateLong returns the long date representation of 't' for 'uz_Latn'
465 func (uz *uz_Latn) FmtDateLong(t time.Time) string {
466
467         b := make([]byte, 0, 32)
468
469         b = strconv.AppendInt(b, int64(t.Day()), 10)
470         b = append(b, []byte{0x2d}...)
471         b = append(b, uz.monthsWide[t.Month()]...)
472         b = append(b, []byte{0x2c, 0x20}...)
473
474         if t.Year() > 0 {
475                 b = strconv.AppendInt(b, int64(t.Year()), 10)
476         } else {
477                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
478         }
479
480         return string(b)
481 }
482
483 // FmtDateFull returns the full date representation of 't' for 'uz_Latn'
484 func (uz *uz_Latn) FmtDateFull(t time.Time) string {
485
486         b := make([]byte, 0, 32)
487
488         b = append(b, uz.daysWide[t.Weekday()]...)
489         b = append(b, []byte{0x2c, 0x20}...)
490         b = strconv.AppendInt(b, int64(t.Day()), 10)
491         b = append(b, []byte{0x2d}...)
492         b = append(b, uz.monthsWide[t.Month()]...)
493         b = append(b, []byte{0x2c, 0x20}...)
494
495         if t.Year() > 0 {
496                 b = strconv.AppendInt(b, int64(t.Year()), 10)
497         } else {
498                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
499         }
500
501         return string(b)
502 }
503
504 // FmtTimeShort returns the short time representation of 't' for 'uz_Latn'
505 func (uz *uz_Latn) FmtTimeShort(t time.Time) string {
506
507         b := make([]byte, 0, 32)
508
509         if t.Hour() < 10 {
510                 b = append(b, '0')
511         }
512
513         b = strconv.AppendInt(b, int64(t.Hour()), 10)
514         b = append(b, uz.timeSeparator...)
515
516         if t.Minute() < 10 {
517                 b = append(b, '0')
518         }
519
520         b = strconv.AppendInt(b, int64(t.Minute()), 10)
521
522         return string(b)
523 }
524
525 // FmtTimeMedium returns the medium time representation of 't' for 'uz_Latn'
526 func (uz *uz_Latn) FmtTimeMedium(t time.Time) string {
527
528         b := make([]byte, 0, 32)
529
530         if t.Hour() < 10 {
531                 b = append(b, '0')
532         }
533
534         b = strconv.AppendInt(b, int64(t.Hour()), 10)
535         b = append(b, uz.timeSeparator...)
536
537         if t.Minute() < 10 {
538                 b = append(b, '0')
539         }
540
541         b = strconv.AppendInt(b, int64(t.Minute()), 10)
542         b = append(b, uz.timeSeparator...)
543
544         if t.Second() < 10 {
545                 b = append(b, '0')
546         }
547
548         b = strconv.AppendInt(b, int64(t.Second()), 10)
549
550         return string(b)
551 }
552
553 // FmtTimeLong returns the long time representation of 't' for 'uz_Latn'
554 func (uz *uz_Latn) FmtTimeLong(t time.Time) string {
555
556         b := make([]byte, 0, 32)
557
558         b = strconv.AppendInt(b, int64(t.Hour()), 10)
559         b = append(b, uz.timeSeparator...)
560
561         if t.Minute() < 10 {
562                 b = append(b, '0')
563         }
564
565         b = strconv.AppendInt(b, int64(t.Minute()), 10)
566         b = append(b, uz.timeSeparator...)
567
568         if t.Second() < 10 {
569                 b = append(b, '0')
570         }
571
572         b = strconv.AppendInt(b, int64(t.Second()), 10)
573         b = append(b, []byte{0x20, 0x28}...)
574
575         tz, _ := t.Zone()
576         b = append(b, tz...)
577
578         b = append(b, []byte{0x29}...)
579
580         return string(b)
581 }
582
583 // FmtTimeFull returns the full time representation of 't' for 'uz_Latn'
584 func (uz *uz_Latn) FmtTimeFull(t time.Time) string {
585
586         b := make([]byte, 0, 32)
587
588         b = strconv.AppendInt(b, int64(t.Hour()), 10)
589         b = append(b, uz.timeSeparator...)
590
591         if t.Minute() < 10 {
592                 b = append(b, '0')
593         }
594
595         b = strconv.AppendInt(b, int64(t.Minute()), 10)
596         b = append(b, uz.timeSeparator...)
597
598         if t.Second() < 10 {
599                 b = append(b, '0')
600         }
601
602         b = strconv.AppendInt(b, int64(t.Second()), 10)
603         b = append(b, []byte{0x20, 0x28}...)
604
605         tz, _ := t.Zone()
606
607         if btz, ok := uz.timezones[tz]; ok {
608                 b = append(b, btz...)
609         } else {
610                 b = append(b, tz...)
611         }
612
613         b = append(b, []byte{0x29}...)
614
615         return string(b)
616 }