OSDN Git Service

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