OSDN Git Service

delete miner
[bytom/vapor.git] / vendor / github.com / go-playground / locales / kl_GL / kl_GL.go
1 package kl_GL
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 kl_GL 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         monthsAbbreviated  []string
27         monthsNarrow       []string
28         monthsWide         []string
29         daysAbbreviated    []string
30         daysNarrow         []string
31         daysShort          []string
32         daysWide           []string
33         periodsAbbreviated []string
34         periodsNarrow      []string
35         periodsShort       []string
36         periodsWide        []string
37         erasAbbreviated    []string
38         erasNarrow         []string
39         erasWide           []string
40         timezones          map[string]string
41 }
42
43 // New returns a new instance of translator for the 'kl_GL' locale
44 func New() locales.Translator {
45         return &kl_GL{
46                 locale:             "kl_GL",
47                 pluralsCardinal:    []locales.PluralRule{2, 6},
48                 pluralsOrdinal:     nil,
49                 pluralsRange:       nil,
50                 decimal:            ",",
51                 group:              ".",
52                 minus:              "−",
53                 percent:            "%",
54                 perMille:           "‰",
55                 timeSeparator:      ":",
56                 inifinity:          "∞",
57                 currencies:         []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AUD", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "EUR", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGX", "USD", "USN", "USS", "UYI", "UYP", "UYU", "UZS", "VEB", "VEF", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"},
58                 percentSuffix:      " ",
59                 monthsAbbreviated:  []string{"", "jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"},
60                 monthsNarrow:       []string{"", "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"},
61                 monthsWide:         []string{"", "januari", "februari", "martsi", "aprili", "maji", "juni", "juli", "augustusi", "septemberi", "oktoberi", "novemberi", "decemberi"},
62                 daysAbbreviated:    []string{"sab", "ata", "mar", "pin", "sis", "tal", "arf"},
63                 daysNarrow:         []string{"S", "A", "M", "P", "S", "T", "A"},
64                 daysShort:          []string{"sab", "ata", "mar", "pin", "sis", "tal", "arf"},
65                 daysWide:           []string{"sabaat", "ataasinngorneq", "marlunngorneq", "pingasunngorneq", "sisamanngorneq", "tallimanngorneq", "arfininngorneq"},
66                 periodsAbbreviated: []string{"u.t.", "u.k."},
67                 periodsWide:        []string{"ulloqeqqata-tungaa", "ulloqeqqata-kingorna"},
68                 erasAbbreviated:    []string{"Kr.in.si.", "Kr.in.king."},
69                 erasNarrow:         []string{"Kr.s.", "Kr.k."},
70                 erasWide:           []string{"Kristusip inunngornerata siornagut", "Kristusip inunngornerata kingornagut"},
71                 timezones:          map[string]string{"VET": "VET", "HEOG": "HEOG", "GFT": "GFT", "CLST": "CLST", "EST": "EST", "GMT": "GMT", "CHADT": "CHADT", "ACWST": "ACWST", "HNCU": "HNCU", "ART": "ART", "ARST": "ARST", "HNOG": "HNOG", "HNEG": "HNEG", "ECT": "ECT", "OESZ": "OESZ", "MESZ": "MESZ", "HENOMX": "HENOMX", "WITA": "WITA", "JDT": "JDT", "LHST": "LHST", "LHDT": "LHDT", "COST": "COST", "AWST": "AWST", "EAT": "EAT", "HNT": "HNT", "HKST": "HKST", "WIT": "WIT", "NZST": "NZST", "WART": "WART", "WARST": "WARST", "AEST": "AEST", "WAT": "WAT", "HKT": "HKT", "WEZ": "WEZ", "MEZ": "MEZ", "HNPM": "HNPM", "AKST": "AKST", "CDT": "CDT", "HADT": "HADT", "HAT": "HAT", "ACDT": "ACDT", "CAT": "CAT", "CHAST": "CHAST", "ACWDT": "ACWDT", "COT": "COT", "HEPMX": "HEPMX", "IST": "IST", "MDT": "MDT", "AST": "AST", "ChST": "ChST", "BOT": "BOT", "MST": "MST", "UYT": "UYT", "TMT": "TMT", "AEDT": "AEDT", "AKDT": "AKDT", "SGT": "SGT", "BT": "BT", "JST": "JST", "CLT": "CLT", "WIB": "WIB", "MYT": "MYT", "UYST": "UYST", "HNNOMX": "HNNOMX", "WAST": "WAST", "HNPMX": "HNPMX", "HEPM": "HEPM", "SRT": "SRT", "GYT": "GYT", "SAST": "SAST", "TMST": "TMST", "OEZ": "OEZ", "ADT": "ADT", "EDT": "EDT", "ACST": "ACST", "WESZ": "WESZ", "CST": "CST", "HAST": "HAST", "PST": "PST", "PDT": "PDT", "HECU": "HECU", "∅∅∅": "∅∅∅", "NZDT": "NZDT", "HEEG": "HEEG", "AWDT": "AWDT"},
72         }
73 }
74
75 // Locale returns the current translators string locale
76 func (kl *kl_GL) Locale() string {
77         return kl.locale
78 }
79
80 // PluralsCardinal returns the list of cardinal plural rules associated with 'kl_GL'
81 func (kl *kl_GL) PluralsCardinal() []locales.PluralRule {
82         return kl.pluralsCardinal
83 }
84
85 // PluralsOrdinal returns the list of ordinal plural rules associated with 'kl_GL'
86 func (kl *kl_GL) PluralsOrdinal() []locales.PluralRule {
87         return kl.pluralsOrdinal
88 }
89
90 // PluralsRange returns the list of range plural rules associated with 'kl_GL'
91 func (kl *kl_GL) PluralsRange() []locales.PluralRule {
92         return kl.pluralsRange
93 }
94
95 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'kl_GL'
96 func (kl *kl_GL) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
97
98         n := math.Abs(num)
99
100         if n == 1 {
101                 return locales.PluralRuleOne
102         }
103
104         return locales.PluralRuleOther
105 }
106
107 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'kl_GL'
108 func (kl *kl_GL) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
109         return locales.PluralRuleUnknown
110 }
111
112 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'kl_GL'
113 func (kl *kl_GL) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
114         return locales.PluralRuleUnknown
115 }
116
117 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
118 func (kl *kl_GL) MonthAbbreviated(month time.Month) string {
119         return kl.monthsAbbreviated[month]
120 }
121
122 // MonthsAbbreviated returns the locales abbreviated months
123 func (kl *kl_GL) MonthsAbbreviated() []string {
124         return kl.monthsAbbreviated[1:]
125 }
126
127 // MonthNarrow returns the locales narrow month given the 'month' provided
128 func (kl *kl_GL) MonthNarrow(month time.Month) string {
129         return kl.monthsNarrow[month]
130 }
131
132 // MonthsNarrow returns the locales narrow months
133 func (kl *kl_GL) MonthsNarrow() []string {
134         return kl.monthsNarrow[1:]
135 }
136
137 // MonthWide returns the locales wide month given the 'month' provided
138 func (kl *kl_GL) MonthWide(month time.Month) string {
139         return kl.monthsWide[month]
140 }
141
142 // MonthsWide returns the locales wide months
143 func (kl *kl_GL) MonthsWide() []string {
144         return kl.monthsWide[1:]
145 }
146
147 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
148 func (kl *kl_GL) WeekdayAbbreviated(weekday time.Weekday) string {
149         return kl.daysAbbreviated[weekday]
150 }
151
152 // WeekdaysAbbreviated returns the locales abbreviated weekdays
153 func (kl *kl_GL) WeekdaysAbbreviated() []string {
154         return kl.daysAbbreviated
155 }
156
157 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
158 func (kl *kl_GL) WeekdayNarrow(weekday time.Weekday) string {
159         return kl.daysNarrow[weekday]
160 }
161
162 // WeekdaysNarrow returns the locales narrow weekdays
163 func (kl *kl_GL) WeekdaysNarrow() []string {
164         return kl.daysNarrow
165 }
166
167 // WeekdayShort returns the locales short weekday given the 'weekday' provided
168 func (kl *kl_GL) WeekdayShort(weekday time.Weekday) string {
169         return kl.daysShort[weekday]
170 }
171
172 // WeekdaysShort returns the locales short weekdays
173 func (kl *kl_GL) WeekdaysShort() []string {
174         return kl.daysShort
175 }
176
177 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
178 func (kl *kl_GL) WeekdayWide(weekday time.Weekday) string {
179         return kl.daysWide[weekday]
180 }
181
182 // WeekdaysWide returns the locales wide weekdays
183 func (kl *kl_GL) WeekdaysWide() []string {
184         return kl.daysWide
185 }
186
187 // Decimal returns the decimal point of number
188 func (kl *kl_GL) Decimal() string {
189         return kl.decimal
190 }
191
192 // Group returns the group of number
193 func (kl *kl_GL) Group() string {
194         return kl.group
195 }
196
197 // Group returns the minus sign of number
198 func (kl *kl_GL) Minus() string {
199         return kl.minus
200 }
201
202 // FmtNumber returns 'num' with digits/precision of 'v' for 'kl_GL' and handles both Whole and Real numbers based on 'v'
203 func (kl *kl_GL) FmtNumber(num float64, v uint64) string {
204
205         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
206         l := len(s) + 4 + 1*len(s[:len(s)-int(v)-1])/3
207         count := 0
208         inWhole := v == 0
209         b := make([]byte, 0, l)
210
211         for i := len(s) - 1; i >= 0; i-- {
212
213                 if s[i] == '.' {
214                         b = append(b, kl.decimal[0])
215                         inWhole = true
216                         continue
217                 }
218
219                 if inWhole {
220                         if count == 3 {
221                                 b = append(b, kl.group[0])
222                                 count = 1
223                         } else {
224                                 count++
225                         }
226                 }
227
228                 b = append(b, s[i])
229         }
230
231         if num < 0 {
232                 for j := len(kl.minus) - 1; j >= 0; j-- {
233                         b = append(b, kl.minus[j])
234                 }
235         }
236
237         // reverse
238         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
239                 b[i], b[j] = b[j], b[i]
240         }
241
242         return string(b)
243 }
244
245 // FmtPercent returns 'num' with digits/precision of 'v' for 'kl_GL' and handles both Whole and Real numbers based on 'v'
246 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
247 func (kl *kl_GL) FmtPercent(num float64, v uint64) string {
248         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
249         l := len(s) + 7
250         b := make([]byte, 0, l)
251
252         for i := len(s) - 1; i >= 0; i-- {
253
254                 if s[i] == '.' {
255                         b = append(b, kl.decimal[0])
256                         continue
257                 }
258
259                 b = append(b, s[i])
260         }
261
262         if num < 0 {
263                 for j := len(kl.minus) - 1; j >= 0; j-- {
264                         b = append(b, kl.minus[j])
265                 }
266         }
267
268         // reverse
269         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
270                 b[i], b[j] = b[j], b[i]
271         }
272
273         b = append(b, kl.percentSuffix...)
274
275         b = append(b, kl.percent...)
276
277         return string(b)
278 }
279
280 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'kl_GL'
281 func (kl *kl_GL) FmtCurrency(num float64, v uint64, currency currency.Type) string {
282
283         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
284         symbol := kl.currencies[currency]
285         l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
286         count := 0
287         inWhole := v == 0
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, kl.decimal[0])
294                         inWhole = true
295                         continue
296                 }
297
298                 if inWhole {
299                         if count == 3 {
300                                 b = append(b, kl.group[0])
301                                 count = 1
302                         } else {
303                                 count++
304                         }
305                 }
306
307                 b = append(b, s[i])
308         }
309
310         for j := len(symbol) - 1; j >= 0; j-- {
311                 b = append(b, symbol[j])
312         }
313
314         if num < 0 {
315                 for j := len(kl.minus) - 1; j >= 0; j-- {
316                         b = append(b, kl.minus[j])
317                 }
318         }
319
320         // reverse
321         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
322                 b[i], b[j] = b[j], b[i]
323         }
324
325         if int(v) < 2 {
326
327                 if v == 0 {
328                         b = append(b, kl.decimal...)
329                 }
330
331                 for i := 0; i < 2-int(v); i++ {
332                         b = append(b, '0')
333                 }
334         }
335
336         return string(b)
337 }
338
339 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'kl_GL'
340 // in accounting notation.
341 func (kl *kl_GL) FmtAccounting(num float64, v uint64, currency currency.Type) string {
342
343         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
344         symbol := kl.currencies[currency]
345         l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
346         count := 0
347         inWhole := v == 0
348         b := make([]byte, 0, l)
349
350         for i := len(s) - 1; i >= 0; i-- {
351
352                 if s[i] == '.' {
353                         b = append(b, kl.decimal[0])
354                         inWhole = true
355                         continue
356                 }
357
358                 if inWhole {
359                         if count == 3 {
360                                 b = append(b, kl.group[0])
361                                 count = 1
362                         } else {
363                                 count++
364                         }
365                 }
366
367                 b = append(b, s[i])
368         }
369
370         if num < 0 {
371
372                 for j := len(symbol) - 1; j >= 0; j-- {
373                         b = append(b, symbol[j])
374                 }
375
376                 for j := len(kl.minus) - 1; j >= 0; j-- {
377                         b = append(b, kl.minus[j])
378                 }
379
380         } else {
381
382                 for j := len(symbol) - 1; j >= 0; j-- {
383                         b = append(b, symbol[j])
384                 }
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, kl.decimal...)
397                 }
398
399                 for i := 0; i < 2-int(v); i++ {
400                         b = append(b, '0')
401                 }
402         }
403
404         return string(b)
405 }
406
407 // FmtDateShort returns the short date representation of 't' for 'kl_GL'
408 func (kl *kl_GL) FmtDateShort(t time.Time) string {
409
410         b := make([]byte, 0, 32)
411
412         if t.Year() > 0 {
413                 b = strconv.AppendInt(b, int64(t.Year()), 10)
414         } else {
415                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
416         }
417
418         b = append(b, []byte{0x2d}...)
419
420         if t.Month() < 10 {
421                 b = append(b, '0')
422         }
423
424         b = strconv.AppendInt(b, int64(t.Month()), 10)
425
426         b = append(b, []byte{0x2d}...)
427
428         if t.Day() < 10 {
429                 b = append(b, '0')
430         }
431
432         b = strconv.AppendInt(b, int64(t.Day()), 10)
433
434         return string(b)
435 }
436
437 // FmtDateMedium returns the medium date representation of 't' for 'kl_GL'
438 func (kl *kl_GL) FmtDateMedium(t time.Time) string {
439
440         b := make([]byte, 0, 32)
441
442         b = append(b, kl.monthsAbbreviated[t.Month()]...)
443         b = append(b, []byte{0x20}...)
444
445         if t.Day() < 10 {
446                 b = append(b, '0')
447         }
448
449         b = strconv.AppendInt(b, int64(t.Day()), 10)
450         b = append(b, []byte{0x2c, 0x20}...)
451
452         if t.Year() > 0 {
453                 b = strconv.AppendInt(b, int64(t.Year()), 10)
454         } else {
455                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
456         }
457
458         return string(b)
459 }
460
461 // FmtDateLong returns the long date representation of 't' for 'kl_GL'
462 func (kl *kl_GL) FmtDateLong(t time.Time) string {
463
464         b := make([]byte, 0, 32)
465
466         if t.Day() < 10 {
467                 b = append(b, '0')
468         }
469
470         b = strconv.AppendInt(b, int64(t.Day()), 10)
471         b = append(b, []byte{0x20}...)
472         b = append(b, kl.monthsWide[t.Month()]...)
473         b = append(b, []byte{0x20}...)
474
475         if t.Year() > 0 {
476                 b = strconv.AppendInt(b, int64(t.Year()), 10)
477         } else {
478                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
479         }
480
481         return string(b)
482 }
483
484 // FmtDateFull returns the full date representation of 't' for 'kl_GL'
485 func (kl *kl_GL) FmtDateFull(t time.Time) string {
486
487         b := make([]byte, 0, 32)
488
489         b = append(b, kl.daysWide[t.Weekday()]...)
490         b = append(b, []byte{0x20}...)
491
492         if t.Day() < 10 {
493                 b = append(b, '0')
494         }
495
496         b = strconv.AppendInt(b, int64(t.Day()), 10)
497         b = append(b, []byte{0x20}...)
498         b = append(b, kl.monthsWide[t.Month()]...)
499         b = append(b, []byte{0x20}...)
500
501         if t.Year() > 0 {
502                 b = strconv.AppendInt(b, int64(t.Year()), 10)
503         } else {
504                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
505         }
506
507         return string(b)
508 }
509
510 // FmtTimeShort returns the short time representation of 't' for 'kl_GL'
511 func (kl *kl_GL) FmtTimeShort(t time.Time) string {
512
513         b := make([]byte, 0, 32)
514
515         h := t.Hour()
516
517         if h > 12 {
518                 h -= 12
519         }
520
521         b = strconv.AppendInt(b, int64(h), 10)
522         b = append(b, kl.timeSeparator...)
523
524         if t.Minute() < 10 {
525                 b = append(b, '0')
526         }
527
528         b = strconv.AppendInt(b, int64(t.Minute()), 10)
529         b = append(b, []byte{0x20}...)
530
531         if t.Hour() < 12 {
532                 b = append(b, kl.periodsAbbreviated[0]...)
533         } else {
534                 b = append(b, kl.periodsAbbreviated[1]...)
535         }
536
537         return string(b)
538 }
539
540 // FmtTimeMedium returns the medium time representation of 't' for 'kl_GL'
541 func (kl *kl_GL) FmtTimeMedium(t time.Time) string {
542
543         b := make([]byte, 0, 32)
544
545         h := t.Hour()
546
547         if h > 12 {
548                 h -= 12
549         }
550
551         b = strconv.AppendInt(b, int64(h), 10)
552         b = append(b, kl.timeSeparator...)
553
554         if t.Minute() < 10 {
555                 b = append(b, '0')
556         }
557
558         b = strconv.AppendInt(b, int64(t.Minute()), 10)
559         b = append(b, kl.timeSeparator...)
560
561         if t.Second() < 10 {
562                 b = append(b, '0')
563         }
564
565         b = strconv.AppendInt(b, int64(t.Second()), 10)
566         b = append(b, []byte{0x20}...)
567
568         if t.Hour() < 12 {
569                 b = append(b, kl.periodsAbbreviated[0]...)
570         } else {
571                 b = append(b, kl.periodsAbbreviated[1]...)
572         }
573
574         return string(b)
575 }
576
577 // FmtTimeLong returns the long time representation of 't' for 'kl_GL'
578 func (kl *kl_GL) FmtTimeLong(t time.Time) string {
579
580         b := make([]byte, 0, 32)
581
582         h := t.Hour()
583
584         if h > 12 {
585                 h -= 12
586         }
587
588         b = strconv.AppendInt(b, int64(h), 10)
589         b = append(b, kl.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, kl.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}...)
604
605         if t.Hour() < 12 {
606                 b = append(b, kl.periodsAbbreviated[0]...)
607         } else {
608                 b = append(b, kl.periodsAbbreviated[1]...)
609         }
610
611         b = append(b, []byte{0x20}...)
612
613         tz, _ := t.Zone()
614         b = append(b, tz...)
615
616         return string(b)
617 }
618
619 // FmtTimeFull returns the full time representation of 't' for 'kl_GL'
620 func (kl *kl_GL) FmtTimeFull(t time.Time) string {
621
622         b := make([]byte, 0, 32)
623
624         h := t.Hour()
625
626         if h > 12 {
627                 h -= 12
628         }
629
630         b = strconv.AppendInt(b, int64(h), 10)
631         b = append(b, kl.timeSeparator...)
632
633         if t.Minute() < 10 {
634                 b = append(b, '0')
635         }
636
637         b = strconv.AppendInt(b, int64(t.Minute()), 10)
638         b = append(b, kl.timeSeparator...)
639
640         if t.Second() < 10 {
641                 b = append(b, '0')
642         }
643
644         b = strconv.AppendInt(b, int64(t.Second()), 10)
645         b = append(b, []byte{0x20}...)
646
647         if t.Hour() < 12 {
648                 b = append(b, kl.periodsAbbreviated[0]...)
649         } else {
650                 b = append(b, kl.periodsAbbreviated[1]...)
651         }
652
653         b = append(b, []byte{0x20}...)
654
655         tz, _ := t.Zone()
656
657         if btz, ok := kl.timezones[tz]; ok {
658                 b = append(b, btz...)
659         } else {
660                 b = append(b, tz...)
661         }
662
663         return string(b)
664 }