OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-playground / locales / es_AR / es_AR.go
1 package es_AR
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 es_AR 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         percentSuffix          string
22         perMille               string
23         timeSeparator          string
24         inifinity              string
25         currencies             []string // idx = enum of currency code
26         currencyPositivePrefix string
27         currencyNegativePrefix string
28         currencyNegativeSuffix string
29         monthsAbbreviated      []string
30         monthsNarrow           []string
31         monthsWide             []string
32         daysAbbreviated        []string
33         daysNarrow             []string
34         daysShort              []string
35         daysWide               []string
36         periodsAbbreviated     []string
37         periodsNarrow          []string
38         periodsShort           []string
39         periodsWide            []string
40         erasAbbreviated        []string
41         erasNarrow             []string
42         erasWide               []string
43         timezones              map[string]string
44 }
45
46 // New returns a new instance of translator for the 'es_AR' locale
47 func New() locales.Translator {
48         return &es_AR{
49                 locale:                 "es_AR",
50                 pluralsCardinal:        []locales.PluralRule{2, 6},
51                 pluralsOrdinal:         []locales.PluralRule{6},
52                 pluralsRange:           []locales.PluralRule{6},
53                 decimal:                ",",
54                 group:                  ".",
55                 minus:                  "-",
56                 percent:                "%",
57                 perMille:               "‰",
58                 timeSeparator:          ":",
59                 inifinity:              "∞",
60                 currencies:             []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "$", "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", "US$", "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"},
61                 percentSuffix:          " ",
62                 currencyPositivePrefix: " ",
63                 currencyNegativePrefix: "( ",
64                 currencyNegativeSuffix: ")",
65                 monthsAbbreviated:      []string{"", "ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic."},
66                 monthsNarrow:           []string{"", "E", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"},
67                 monthsWide:             []string{"", "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"},
68                 daysAbbreviated:        []string{"dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."},
69                 daysNarrow:             []string{"D", "L", "M", "M", "J", "V", "S"},
70                 daysShort:              []string{"DO", "LU", "MA", "MI", "JU", "VI", "SA"},
71                 daysWide:               []string{"domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"},
72                 periodsAbbreviated:     []string{"a. m.", "p. m."},
73                 periodsNarrow:          []string{"a. m.", "p. m."},
74                 periodsWide:            []string{"a. m.", "p. m."},
75                 erasAbbreviated:        []string{"a. C.", "d. C."},
76                 erasNarrow:             []string{"", ""},
77                 erasWide:               []string{"antes de Cristo", "después de Cristo"},
78                 timezones:              map[string]string{"HNCU": "hora estándar de Cuba", "WITA": "hora de Indonesia central", "OEZ": "hora estándar de Europa oriental", "ADT": "hora de verano del Atlántico", "COT": "hora estándar de Colombia", "ACDT": "hora de verano de Australia central", "MST": "hora estándar de las Montañas", "AEST": "hora estándar de Australia oriental", "AEDT": "hora de verano de Australia oriental", "HEOG": "hora de verano de Groenlandia occidental", "GMT": "hora del meridiano de Greenwich", "PDT": "hora de verano del Pacífico", "OESZ": "hora de verano de Europa oriental", "EAT": "hora de África oriental", "EST": "hora estándar oriental", "ECT": "hora de Ecuador", "SGT": "hora de Singapur", "WAT": "hora estándar de África occidental", "HNEG": "hora estándar de Groenlandia oriental", "AKST": "hora estándar de Alaska", "PST": "hora estándar del Pacífico", "ACWST": "hora estándar de Australia centroccidental", "GFT": "hora de la Guayana Francesa", "HNPMX": "hora estándar del Pacífico de México", "ACWDT": "hora de verano de Australia centroccidental", "HAST": "hora estándar de Hawái-Aleutiano", "TMT": "hora estándar de Turkmenistán", "ART": "hora estándar de Argentina", "ARST": "hora de verano de Argentina", "SAST": "hora de Sudáfrica", "HADT": "hora de verano de Hawái-Aleutiano", "NZDT": "hora de verano de Nueva Zelanda", "HENOMX": "hora de verano del noroeste de México", "HEPM": "hora de verano de San Pedro y Miquelón", "AWST": "hora estándar de Australia occidental", "HNNOMX": "hora estándar del noroeste de México", "WART": "hora estándar de Argentina occidental", "IST": "hora estándar de la India", "TMST": "hora de verano de Turkmenistán", "LHDT": "hora de verano de Lord Howe", "WARST": "hora de verano de Argentina occidental", "CLST": "hora de verano de Chile", "WIT": "hora de Indonesia oriental", "JDT": "hora de verano de Japón", "VET": "hora de Venezuela", "WEZ": "hora estándar de Europa occidental", "AWDT": "hora de verano de Australia occidental", "SRT": "hora de Surinam", "MESZ": "hora de verano de Europa central", "AKDT": "hora de verano de Alaska", "ChST": "hora estándar de Chamorro", "CDT": "hora de verano central", "MYT": "hora de Malasia", "NZST": "hora estándar de Nueva Zelanda", "HNOG": "hora estándar de Groenlandia occidental", "HNT": "hora estándar de Terranova", "GYT": "hora de Guyana", "UYST": "hora de verano de Uruguay", "LHST": "hora estándar de Lord Howe", "HKST": "hora de verano de Hong Kong", "CHAST": "hora estándar de Chatham", "HNPM": "hora estándar de San Pedro y Miquelón", "BOT": "hora de Bolivia", "JST": "hora estándar de Japón", "AST": "hora estándar del Atlántico", "COST": "hora de verano de Colombia", "CST": "hora estándar central", "MDT": "hora de verano de las Montañas", "WAST": "hora de verano de África occidental", "HAT": "hora de verano de Terranova", "HEPMX": "hora de verano del Pacífico de México", "CHADT": "hora de verano de Chatham", "∅∅∅": "hora de verano de las Azores", "ACST": "hora estándar de Australia central", "WIB": "hora de Indonesia occidental", "UYT": "hora estándar de Uruguay", "CAT": "hora de África central", "WESZ": "hora de verano de Europa occidental", "HECU": "hora de verano de Cuba", "MEZ": "hora estándar de Europa central", "HEEG": "hora de verano de Groenlandia oriental", "HKT": "hora estándar de Hong Kong", "CLT": "hora estándar de Chile", "EDT": "hora de verano oriental", "BT": "hora de Bután"},
79         }
80 }
81
82 // Locale returns the current translators string locale
83 func (es *es_AR) Locale() string {
84         return es.locale
85 }
86
87 // PluralsCardinal returns the list of cardinal plural rules associated with 'es_AR'
88 func (es *es_AR) PluralsCardinal() []locales.PluralRule {
89         return es.pluralsCardinal
90 }
91
92 // PluralsOrdinal returns the list of ordinal plural rules associated with 'es_AR'
93 func (es *es_AR) PluralsOrdinal() []locales.PluralRule {
94         return es.pluralsOrdinal
95 }
96
97 // PluralsRange returns the list of range plural rules associated with 'es_AR'
98 func (es *es_AR) PluralsRange() []locales.PluralRule {
99         return es.pluralsRange
100 }
101
102 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'es_AR'
103 func (es *es_AR) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
104
105         n := math.Abs(num)
106
107         if n == 1 {
108                 return locales.PluralRuleOne
109         }
110
111         return locales.PluralRuleOther
112 }
113
114 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'es_AR'
115 func (es *es_AR) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
116         return locales.PluralRuleOther
117 }
118
119 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'es_AR'
120 func (es *es_AR) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
121         return locales.PluralRuleOther
122 }
123
124 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
125 func (es *es_AR) MonthAbbreviated(month time.Month) string {
126         return es.monthsAbbreviated[month]
127 }
128
129 // MonthsAbbreviated returns the locales abbreviated months
130 func (es *es_AR) MonthsAbbreviated() []string {
131         return es.monthsAbbreviated[1:]
132 }
133
134 // MonthNarrow returns the locales narrow month given the 'month' provided
135 func (es *es_AR) MonthNarrow(month time.Month) string {
136         return es.monthsNarrow[month]
137 }
138
139 // MonthsNarrow returns the locales narrow months
140 func (es *es_AR) MonthsNarrow() []string {
141         return es.monthsNarrow[1:]
142 }
143
144 // MonthWide returns the locales wide month given the 'month' provided
145 func (es *es_AR) MonthWide(month time.Month) string {
146         return es.monthsWide[month]
147 }
148
149 // MonthsWide returns the locales wide months
150 func (es *es_AR) MonthsWide() []string {
151         return es.monthsWide[1:]
152 }
153
154 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
155 func (es *es_AR) WeekdayAbbreviated(weekday time.Weekday) string {
156         return es.daysAbbreviated[weekday]
157 }
158
159 // WeekdaysAbbreviated returns the locales abbreviated weekdays
160 func (es *es_AR) WeekdaysAbbreviated() []string {
161         return es.daysAbbreviated
162 }
163
164 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
165 func (es *es_AR) WeekdayNarrow(weekday time.Weekday) string {
166         return es.daysNarrow[weekday]
167 }
168
169 // WeekdaysNarrow returns the locales narrow weekdays
170 func (es *es_AR) WeekdaysNarrow() []string {
171         return es.daysNarrow
172 }
173
174 // WeekdayShort returns the locales short weekday given the 'weekday' provided
175 func (es *es_AR) WeekdayShort(weekday time.Weekday) string {
176         return es.daysShort[weekday]
177 }
178
179 // WeekdaysShort returns the locales short weekdays
180 func (es *es_AR) WeekdaysShort() []string {
181         return es.daysShort
182 }
183
184 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
185 func (es *es_AR) WeekdayWide(weekday time.Weekday) string {
186         return es.daysWide[weekday]
187 }
188
189 // WeekdaysWide returns the locales wide weekdays
190 func (es *es_AR) WeekdaysWide() []string {
191         return es.daysWide
192 }
193
194 // Decimal returns the decimal point of number
195 func (es *es_AR) Decimal() string {
196         return es.decimal
197 }
198
199 // Group returns the group of number
200 func (es *es_AR) Group() string {
201         return es.group
202 }
203
204 // Group returns the minus sign of number
205 func (es *es_AR) Minus() string {
206         return es.minus
207 }
208
209 // FmtNumber returns 'num' with digits/precision of 'v' for 'es_AR' and handles both Whole and Real numbers based on 'v'
210 func (es *es_AR) FmtNumber(num float64, v uint64) string {
211
212         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
213         l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
214         count := 0
215         inWhole := v == 0
216         b := make([]byte, 0, l)
217
218         for i := len(s) - 1; i >= 0; i-- {
219
220                 if s[i] == '.' {
221                         b = append(b, es.decimal[0])
222                         inWhole = true
223                         continue
224                 }
225
226                 if inWhole {
227                         if count == 3 {
228                                 b = append(b, es.group[0])
229                                 count = 1
230                         } else {
231                                 count++
232                         }
233                 }
234
235                 b = append(b, s[i])
236         }
237
238         if num < 0 {
239                 b = append(b, es.minus[0])
240         }
241
242         // reverse
243         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
244                 b[i], b[j] = b[j], b[i]
245         }
246
247         return string(b)
248 }
249
250 // FmtPercent returns 'num' with digits/precision of 'v' for 'es_AR' and handles both Whole and Real numbers based on 'v'
251 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
252 func (es *es_AR) FmtPercent(num float64, v uint64) string {
253         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
254         l := len(s) + 5
255         b := make([]byte, 0, l)
256
257         for i := len(s) - 1; i >= 0; i-- {
258
259                 if s[i] == '.' {
260                         b = append(b, es.decimal[0])
261                         continue
262                 }
263
264                 b = append(b, s[i])
265         }
266
267         if num < 0 {
268                 b = append(b, es.minus[0])
269         }
270
271         // reverse
272         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
273                 b[i], b[j] = b[j], b[i]
274         }
275
276         b = append(b, es.percentSuffix...)
277
278         b = append(b, es.percent...)
279
280         return string(b)
281 }
282
283 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'es_AR'
284 func (es *es_AR) FmtCurrency(num float64, v uint64, currency currency.Type) string {
285
286         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
287         symbol := es.currencies[currency]
288         l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
289         count := 0
290         inWhole := v == 0
291         b := make([]byte, 0, l)
292
293         for i := len(s) - 1; i >= 0; i-- {
294
295                 if s[i] == '.' {
296                         b = append(b, es.decimal[0])
297                         inWhole = true
298                         continue
299                 }
300
301                 if inWhole {
302                         if count == 3 {
303                                 b = append(b, es.group[0])
304                                 count = 1
305                         } else {
306                                 count++
307                         }
308                 }
309
310                 b = append(b, s[i])
311         }
312
313         for j := len(symbol) - 1; j >= 0; j-- {
314                 b = append(b, symbol[j])
315         }
316
317         for j := len(es.currencyPositivePrefix) - 1; j >= 0; j-- {
318                 b = append(b, es.currencyPositivePrefix[j])
319         }
320
321         if num < 0 {
322                 b = append(b, es.minus[0])
323         }
324
325         // reverse
326         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
327                 b[i], b[j] = b[j], b[i]
328         }
329
330         if int(v) < 2 {
331
332                 if v == 0 {
333                         b = append(b, es.decimal...)
334                 }
335
336                 for i := 0; i < 2-int(v); i++ {
337                         b = append(b, '0')
338                 }
339         }
340
341         return string(b)
342 }
343
344 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'es_AR'
345 // in accounting notation.
346 func (es *es_AR) FmtAccounting(num float64, v uint64, currency currency.Type) string {
347
348         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
349         symbol := es.currencies[currency]
350         l := len(s) + len(symbol) + 6 + 1*len(s[:len(s)-int(v)-1])/3
351         count := 0
352         inWhole := v == 0
353         b := make([]byte, 0, l)
354
355         for i := len(s) - 1; i >= 0; i-- {
356
357                 if s[i] == '.' {
358                         b = append(b, es.decimal[0])
359                         inWhole = true
360                         continue
361                 }
362
363                 if inWhole {
364                         if count == 3 {
365                                 b = append(b, es.group[0])
366                                 count = 1
367                         } else {
368                                 count++
369                         }
370                 }
371
372                 b = append(b, s[i])
373         }
374
375         if num < 0 {
376
377                 for j := len(symbol) - 1; j >= 0; j-- {
378                         b = append(b, symbol[j])
379                 }
380
381                 for j := len(es.currencyNegativePrefix) - 1; j >= 0; j-- {
382                         b = append(b, es.currencyNegativePrefix[j])
383                 }
384
385         } else {
386
387                 for j := len(symbol) - 1; j >= 0; j-- {
388                         b = append(b, symbol[j])
389                 }
390
391                 for j := len(es.currencyPositivePrefix) - 1; j >= 0; j-- {
392                         b = append(b, es.currencyPositivePrefix[j])
393                 }
394
395         }
396
397         // reverse
398         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
399                 b[i], b[j] = b[j], b[i]
400         }
401
402         if int(v) < 2 {
403
404                 if v == 0 {
405                         b = append(b, es.decimal...)
406                 }
407
408                 for i := 0; i < 2-int(v); i++ {
409                         b = append(b, '0')
410                 }
411         }
412
413         if num < 0 {
414                 b = append(b, es.currencyNegativeSuffix...)
415         }
416
417         return string(b)
418 }
419
420 // FmtDateShort returns the short date representation of 't' for 'es_AR'
421 func (es *es_AR) FmtDateShort(t time.Time) string {
422
423         b := make([]byte, 0, 32)
424
425         b = strconv.AppendInt(b, int64(t.Day()), 10)
426         b = append(b, []byte{0x2f}...)
427         b = strconv.AppendInt(b, int64(t.Month()), 10)
428         b = append(b, []byte{0x2f}...)
429
430         if t.Year() > 9 {
431                 b = append(b, strconv.Itoa(t.Year())[2:]...)
432         } else {
433                 b = append(b, strconv.Itoa(t.Year())[1:]...)
434         }
435
436         return string(b)
437 }
438
439 // FmtDateMedium returns the medium date representation of 't' for 'es_AR'
440 func (es *es_AR) FmtDateMedium(t time.Time) string {
441
442         b := make([]byte, 0, 32)
443
444         b = strconv.AppendInt(b, int64(t.Day()), 10)
445         b = append(b, []byte{0x20}...)
446         b = append(b, es.monthsAbbreviated[t.Month()]...)
447         b = append(b, []byte{0x20}...)
448
449         if t.Year() > 0 {
450                 b = strconv.AppendInt(b, int64(t.Year()), 10)
451         } else {
452                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
453         }
454
455         return string(b)
456 }
457
458 // FmtDateLong returns the long date representation of 't' for 'es_AR'
459 func (es *es_AR) FmtDateLong(t time.Time) string {
460
461         b := make([]byte, 0, 32)
462
463         b = strconv.AppendInt(b, int64(t.Day()), 10)
464         b = append(b, []byte{0x20, 0x64, 0x65}...)
465         b = append(b, []byte{0x20}...)
466         b = append(b, es.monthsWide[t.Month()]...)
467         b = append(b, []byte{0x20, 0x64, 0x65}...)
468         b = append(b, []byte{0x20}...)
469
470         if t.Year() > 0 {
471                 b = strconv.AppendInt(b, int64(t.Year()), 10)
472         } else {
473                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
474         }
475
476         return string(b)
477 }
478
479 // FmtDateFull returns the full date representation of 't' for 'es_AR'
480 func (es *es_AR) FmtDateFull(t time.Time) string {
481
482         b := make([]byte, 0, 32)
483
484         b = append(b, es.daysWide[t.Weekday()]...)
485         b = append(b, []byte{0x2c, 0x20}...)
486         b = strconv.AppendInt(b, int64(t.Day()), 10)
487         b = append(b, []byte{0x20, 0x64, 0x65}...)
488         b = append(b, []byte{0x20}...)
489         b = append(b, es.monthsWide[t.Month()]...)
490         b = append(b, []byte{0x20, 0x64, 0x65}...)
491         b = append(b, []byte{0x20}...)
492
493         if t.Year() > 0 {
494                 b = strconv.AppendInt(b, int64(t.Year()), 10)
495         } else {
496                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
497         }
498
499         return string(b)
500 }
501
502 // FmtTimeShort returns the short time representation of 't' for 'es_AR'
503 func (es *es_AR) FmtTimeShort(t time.Time) string {
504
505         b := make([]byte, 0, 32)
506
507         b = strconv.AppendInt(b, int64(t.Hour()), 10)
508         b = append(b, es.timeSeparator...)
509
510         if t.Minute() < 10 {
511                 b = append(b, '0')
512         }
513
514         b = strconv.AppendInt(b, int64(t.Minute()), 10)
515
516         return string(b)
517 }
518
519 // FmtTimeMedium returns the medium time representation of 't' for 'es_AR'
520 func (es *es_AR) FmtTimeMedium(t time.Time) string {
521
522         b := make([]byte, 0, 32)
523
524         b = strconv.AppendInt(b, int64(t.Hour()), 10)
525         b = append(b, es.timeSeparator...)
526
527         if t.Minute() < 10 {
528                 b = append(b, '0')
529         }
530
531         b = strconv.AppendInt(b, int64(t.Minute()), 10)
532         b = append(b, es.timeSeparator...)
533
534         if t.Second() < 10 {
535                 b = append(b, '0')
536         }
537
538         b = strconv.AppendInt(b, int64(t.Second()), 10)
539
540         return string(b)
541 }
542
543 // FmtTimeLong returns the long time representation of 't' for 'es_AR'
544 func (es *es_AR) FmtTimeLong(t time.Time) string {
545
546         b := make([]byte, 0, 32)
547
548         b = strconv.AppendInt(b, int64(t.Hour()), 10)
549         b = append(b, es.timeSeparator...)
550
551         if t.Minute() < 10 {
552                 b = append(b, '0')
553         }
554
555         b = strconv.AppendInt(b, int64(t.Minute()), 10)
556         b = append(b, es.timeSeparator...)
557
558         if t.Second() < 10 {
559                 b = append(b, '0')
560         }
561
562         b = strconv.AppendInt(b, int64(t.Second()), 10)
563         b = append(b, []byte{0x20}...)
564
565         tz, _ := t.Zone()
566         b = append(b, tz...)
567
568         return string(b)
569 }
570
571 // FmtTimeFull returns the full time representation of 't' for 'es_AR'
572 func (es *es_AR) FmtTimeFull(t time.Time) string {
573
574         b := make([]byte, 0, 32)
575
576         b = strconv.AppendInt(b, int64(t.Hour()), 10)
577         b = append(b, es.timeSeparator...)
578
579         if t.Minute() < 10 {
580                 b = append(b, '0')
581         }
582
583         b = strconv.AppendInt(b, int64(t.Minute()), 10)
584         b = append(b, es.timeSeparator...)
585
586         if t.Second() < 10 {
587                 b = append(b, '0')
588         }
589
590         b = strconv.AppendInt(b, int64(t.Second()), 10)
591         b = append(b, []byte{0x20, 0x28}...)
592
593         tz, _ := t.Zone()
594
595         if btz, ok := es.timezones[tz]; ok {
596                 b = append(b, btz...)
597         } else {
598                 b = append(b, tz...)
599         }
600
601         b = append(b, []byte{0x29}...)
602
603         return string(b)
604 }