OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-playground / locales / yo_NG / yo_NG.go
1 package yo_NG
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 yo_NG 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         currencyNegativePrefix 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 'yo_NG' locale
45 func New() locales.Translator {
46         return &yo_NG{
47                 locale:                 "yo_NG",
48                 pluralsCardinal:        []locales.PluralRule{6},
49                 pluralsOrdinal:         nil,
50                 pluralsRange:           nil,
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                 currencyNegativePrefix: "(",
60                 currencyNegativeSuffix: ")",
61                 monthsAbbreviated:      []string{"", "Ṣẹ́rẹ́", "Èrèlè", "Ẹrẹ̀nà", "Ìgbé", "Ẹ̀bibi", "Òkúdu", "Agẹmọ", "Ògún", "Owewe", "Ọ̀wàrà", "Bélú", "Ọ̀pẹ̀"},
62                 monthsNarrow:           []string{"", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"},
63                 monthsWide:             []string{"", "Oṣù Ṣẹ́rẹ́", "Oṣù Èrèlè", "Oṣù Ẹrẹ̀nà", "Oṣù Ìgbé", "Oṣù Ẹ̀bibi", "Oṣù Òkúdu", "Oṣù Agẹmọ", "Oṣù Ògún", "Oṣù Owewe", "Oṣù Ọ̀wàrà", "Oṣù Bélú", "Oṣù Ọ̀pẹ̀"},
64                 daysAbbreviated:        []string{"Àìkú", "Ajé", "Ìsẹ́gun", "Ọjọ́rú", "Ọjọ́bọ", "Ẹtì", "Àbámẹ́ta"},
65                 daysShort:              []string{"Àìkú", "Ajé", "Ìsẹ́gun", "Ọjọ́rú", "Ọjọ́bọ", "Ẹtì", "Àbámẹ́ta"},
66                 daysWide:               []string{"Ọjọ́ Àìkú", "Ọjọ́ Ajé", "Ọjọ́ Ìsẹ́gun", "Ọjọ́rú", "Ọjọ́bọ", "Ọjọ́ Ẹtì", "Ọjọ́ Àbámẹ́ta"},
67                 periodsAbbreviated:     []string{"Àárọ̀", "Ọ̀sán"},
68                 periodsNarrow:          []string{"Àárọ̀", "Ọ̀sán"},
69                 periodsWide:            []string{"Àárọ̀", "Ọ̀sán"},
70                 erasAbbreviated:        []string{"", ""},
71                 erasNarrow:             []string{"", ""},
72                 erasWide:               []string{"Saju Kristi", "Lehin Kristi"},
73                 timezones:              map[string]string{"BOT": "BOT", "IST": "IST", "WIT": "WIT", "LHST": "LHST", "WEZ": "WEZ", "PST": "PST", "HECU": "HECU", "HEPM": "HEPM", "BT": "BT", "MYT": "MYT", "WAT": "WAT", "WESZ": "WESZ", "OEZ": "OEZ", "WART": "WART", "HEOG": "HEOG", "HEEG": "HEEG", "MST": "MST", "NZST": "NZST", "HNNOMX": "HNNOMX", "ADT": "ADT", "WITA": "WITA", "COST": "COST", "EDT": "EDT", "GYT": "GYT", "AWST": "AWST", "UYST": "UYST", "WARST": "WARST", "TMT": "TMT", "TMST": "TMST", "CLST": "CLST", "GFT": "GFT", "ECT": "ECT", "CAT": "CAT", "AWDT": "AWDT", "HADT": "HADT", "HEPMX": "HEPMX", "VET": "VET", "AEST": "AEST", "ART": "ART", "HNOG": "HNOG", "ACST": "ACST", "GMT": "GMT", "HNPM": "HNPM", "ACWDT": "ACWDT", "OESZ": "OESZ", "JST": "JST", "LHDT": "LHDT", "ARST": "ARST", "CHAST": "CHAST", "SRT": "SRT", "MEZ": "MEZ", "CDT": "CDT", "MESZ": "MESZ", "SAST": "SAST", "HKST": "HKST", "AKST": "AKST", "ChST": "ChST", "HNPMX": "HNPMX", "HNCU": "HNCU", "JDT": "JDT", "AEDT": "AEDT", "CLT": "CLT", "SGT": "SGT", "UYT": "UYT", "HAST": "HAST", "MDT": "MDT", "AST": "AST", "EAT": "EAT", "COT": "COT", "EST": "EST", "∅∅∅": "∅∅∅", "PDT": "PDT", "CST": "CST", "HNT": "HNT", "AKDT": "AKDT", "ACDT": "ACDT", "WIB": "WIB", "HKT": "HKT", "CHADT": "CHADT", "HENOMX": "HENOMX", "WAST": "WAST", "HNEG": "HNEG", "HAT": "HAT", "ACWST": "ACWST", "NZDT": "NZDT"},
74         }
75 }
76
77 // Locale returns the current translators string locale
78 func (yo *yo_NG) Locale() string {
79         return yo.locale
80 }
81
82 // PluralsCardinal returns the list of cardinal plural rules associated with 'yo_NG'
83 func (yo *yo_NG) PluralsCardinal() []locales.PluralRule {
84         return yo.pluralsCardinal
85 }
86
87 // PluralsOrdinal returns the list of ordinal plural rules associated with 'yo_NG'
88 func (yo *yo_NG) PluralsOrdinal() []locales.PluralRule {
89         return yo.pluralsOrdinal
90 }
91
92 // PluralsRange returns the list of range plural rules associated with 'yo_NG'
93 func (yo *yo_NG) PluralsRange() []locales.PluralRule {
94         return yo.pluralsRange
95 }
96
97 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'yo_NG'
98 func (yo *yo_NG) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
99         return locales.PluralRuleOther
100 }
101
102 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'yo_NG'
103 func (yo *yo_NG) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
104         return locales.PluralRuleUnknown
105 }
106
107 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'yo_NG'
108 func (yo *yo_NG) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
109         return locales.PluralRuleUnknown
110 }
111
112 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
113 func (yo *yo_NG) MonthAbbreviated(month time.Month) string {
114         return yo.monthsAbbreviated[month]
115 }
116
117 // MonthsAbbreviated returns the locales abbreviated months
118 func (yo *yo_NG) MonthsAbbreviated() []string {
119         return yo.monthsAbbreviated[1:]
120 }
121
122 // MonthNarrow returns the locales narrow month given the 'month' provided
123 func (yo *yo_NG) MonthNarrow(month time.Month) string {
124         return yo.monthsNarrow[month]
125 }
126
127 // MonthsNarrow returns the locales narrow months
128 func (yo *yo_NG) MonthsNarrow() []string {
129         return yo.monthsNarrow[1:]
130 }
131
132 // MonthWide returns the locales wide month given the 'month' provided
133 func (yo *yo_NG) MonthWide(month time.Month) string {
134         return yo.monthsWide[month]
135 }
136
137 // MonthsWide returns the locales wide months
138 func (yo *yo_NG) MonthsWide() []string {
139         return yo.monthsWide[1:]
140 }
141
142 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
143 func (yo *yo_NG) WeekdayAbbreviated(weekday time.Weekday) string {
144         return yo.daysAbbreviated[weekday]
145 }
146
147 // WeekdaysAbbreviated returns the locales abbreviated weekdays
148 func (yo *yo_NG) WeekdaysAbbreviated() []string {
149         return yo.daysAbbreviated
150 }
151
152 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
153 func (yo *yo_NG) WeekdayNarrow(weekday time.Weekday) string {
154         return yo.daysNarrow[weekday]
155 }
156
157 // WeekdaysNarrow returns the locales narrow weekdays
158 func (yo *yo_NG) WeekdaysNarrow() []string {
159         return yo.daysNarrow
160 }
161
162 // WeekdayShort returns the locales short weekday given the 'weekday' provided
163 func (yo *yo_NG) WeekdayShort(weekday time.Weekday) string {
164         return yo.daysShort[weekday]
165 }
166
167 // WeekdaysShort returns the locales short weekdays
168 func (yo *yo_NG) WeekdaysShort() []string {
169         return yo.daysShort
170 }
171
172 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
173 func (yo *yo_NG) WeekdayWide(weekday time.Weekday) string {
174         return yo.daysWide[weekday]
175 }
176
177 // WeekdaysWide returns the locales wide weekdays
178 func (yo *yo_NG) WeekdaysWide() []string {
179         return yo.daysWide
180 }
181
182 // Decimal returns the decimal point of number
183 func (yo *yo_NG) Decimal() string {
184         return yo.decimal
185 }
186
187 // Group returns the group of number
188 func (yo *yo_NG) Group() string {
189         return yo.group
190 }
191
192 // Group returns the minus sign of number
193 func (yo *yo_NG) Minus() string {
194         return yo.minus
195 }
196
197 // FmtNumber returns 'num' with digits/precision of 'v' for 'yo_NG' and handles both Whole and Real numbers based on 'v'
198 func (yo *yo_NG) FmtNumber(num float64, v uint64) string {
199
200         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
201         l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
202         count := 0
203         inWhole := v == 0
204         b := make([]byte, 0, l)
205
206         for i := len(s) - 1; i >= 0; i-- {
207
208                 if s[i] == '.' {
209                         b = append(b, yo.decimal[0])
210                         inWhole = true
211                         continue
212                 }
213
214                 if inWhole {
215                         if count == 3 {
216                                 b = append(b, yo.group[0])
217                                 count = 1
218                         } else {
219                                 count++
220                         }
221                 }
222
223                 b = append(b, s[i])
224         }
225
226         if num < 0 {
227                 b = append(b, yo.minus[0])
228         }
229
230         // reverse
231         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
232                 b[i], b[j] = b[j], b[i]
233         }
234
235         return string(b)
236 }
237
238 // FmtPercent returns 'num' with digits/precision of 'v' for 'yo_NG' and handles both Whole and Real numbers based on 'v'
239 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
240 func (yo *yo_NG) FmtPercent(num float64, v uint64) string {
241         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
242         l := len(s) + 3
243         b := make([]byte, 0, l)
244
245         for i := len(s) - 1; i >= 0; i-- {
246
247                 if s[i] == '.' {
248                         b = append(b, yo.decimal[0])
249                         continue
250                 }
251
252                 b = append(b, s[i])
253         }
254
255         if num < 0 {
256                 b = append(b, yo.minus[0])
257         }
258
259         // reverse
260         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
261                 b[i], b[j] = b[j], b[i]
262         }
263
264         b = append(b, yo.percent...)
265
266         return string(b)
267 }
268
269 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'yo_NG'
270 func (yo *yo_NG) FmtCurrency(num float64, v uint64, currency currency.Type) string {
271
272         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
273         symbol := yo.currencies[currency]
274         l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
275         count := 0
276         inWhole := v == 0
277         b := make([]byte, 0, l)
278
279         for i := len(s) - 1; i >= 0; i-- {
280
281                 if s[i] == '.' {
282                         b = append(b, yo.decimal[0])
283                         inWhole = true
284                         continue
285                 }
286
287                 if inWhole {
288                         if count == 3 {
289                                 b = append(b, yo.group[0])
290                                 count = 1
291                         } else {
292                                 count++
293                         }
294                 }
295
296                 b = append(b, s[i])
297         }
298
299         for j := len(symbol) - 1; j >= 0; j-- {
300                 b = append(b, symbol[j])
301         }
302
303         if num < 0 {
304                 b = append(b, yo.minus[0])
305         }
306
307         // reverse
308         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
309                 b[i], b[j] = b[j], b[i]
310         }
311
312         if int(v) < 2 {
313
314                 if v == 0 {
315                         b = append(b, yo.decimal...)
316                 }
317
318                 for i := 0; i < 2-int(v); i++ {
319                         b = append(b, '0')
320                 }
321         }
322
323         return string(b)
324 }
325
326 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'yo_NG'
327 // in accounting notation.
328 func (yo *yo_NG) FmtAccounting(num float64, v uint64, currency currency.Type) string {
329
330         s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
331         symbol := yo.currencies[currency]
332         l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
333         count := 0
334         inWhole := v == 0
335         b := make([]byte, 0, l)
336
337         for i := len(s) - 1; i >= 0; i-- {
338
339                 if s[i] == '.' {
340                         b = append(b, yo.decimal[0])
341                         inWhole = true
342                         continue
343                 }
344
345                 if inWhole {
346                         if count == 3 {
347                                 b = append(b, yo.group[0])
348                                 count = 1
349                         } else {
350                                 count++
351                         }
352                 }
353
354                 b = append(b, s[i])
355         }
356
357         if num < 0 {
358
359                 for j := len(symbol) - 1; j >= 0; j-- {
360                         b = append(b, symbol[j])
361                 }
362
363                 b = append(b, yo.currencyNegativePrefix[0])
364
365         } else {
366
367                 for j := len(symbol) - 1; j >= 0; j-- {
368                         b = append(b, symbol[j])
369                 }
370
371         }
372
373         // reverse
374         for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
375                 b[i], b[j] = b[j], b[i]
376         }
377
378         if int(v) < 2 {
379
380                 if v == 0 {
381                         b = append(b, yo.decimal...)
382                 }
383
384                 for i := 0; i < 2-int(v); i++ {
385                         b = append(b, '0')
386                 }
387         }
388
389         if num < 0 {
390                 b = append(b, yo.currencyNegativeSuffix...)
391         }
392
393         return string(b)
394 }
395
396 // FmtDateShort returns the short date representation of 't' for 'yo_NG'
397 func (yo *yo_NG) FmtDateShort(t time.Time) string {
398
399         b := make([]byte, 0, 32)
400
401         if t.Day() < 10 {
402                 b = append(b, '0')
403         }
404
405         b = strconv.AppendInt(b, int64(t.Day()), 10)
406         b = append(b, []byte{0x2f}...)
407
408         if t.Month() < 10 {
409                 b = append(b, '0')
410         }
411
412         b = strconv.AppendInt(b, int64(t.Month()), 10)
413
414         b = append(b, []byte{0x2f}...)
415
416         if t.Year() > 0 {
417                 b = strconv.AppendInt(b, int64(t.Year()), 10)
418         } else {
419                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
420         }
421
422         return string(b)
423 }
424
425 // FmtDateMedium returns the medium date representation of 't' for 'yo_NG'
426 func (yo *yo_NG) FmtDateMedium(t time.Time) string {
427
428         b := make([]byte, 0, 32)
429
430         b = strconv.AppendInt(b, int64(t.Day()), 10)
431         b = append(b, []byte{0x20}...)
432         b = append(b, yo.monthsAbbreviated[t.Month()]...)
433         b = append(b, []byte{0x20}...)
434
435         if t.Year() > 0 {
436                 b = strconv.AppendInt(b, int64(t.Year()), 10)
437         } else {
438                 b = strconv.AppendInt(b, int64(-t.Year()), 10)
439         }
440
441         return string(b)
442 }
443
444 // FmtDateLong returns the long date representation of 't' for 'yo_NG'
445 func (yo *yo_NG) FmtDateLong(t time.Time) string {
446
447         b := make([]byte, 0, 32)
448
449         b = strconv.AppendInt(b, int64(t.Day()), 10)
450         b = append(b, []byte{0x20}...)
451         b = append(b, yo.monthsWide[t.Month()]...)
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 // FmtDateFull returns the full date representation of 't' for 'yo_NG'
464 func (yo *yo_NG) FmtDateFull(t time.Time) string {
465
466         b := make([]byte, 0, 32)
467
468         b = append(b, yo.daysWide[t.Weekday()]...)
469         b = append(b, []byte{0x2c, 0x20}...)
470         b = strconv.AppendInt(b, int64(t.Day()), 10)
471         b = append(b, []byte{0x20}...)
472         b = append(b, yo.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 // FmtTimeShort returns the short time representation of 't' for 'yo_NG'
485 func (yo *yo_NG) FmtTimeShort(t time.Time) string {
486
487         b := make([]byte, 0, 32)
488
489         if t.Hour() < 10 {
490                 b = append(b, '0')
491         }
492
493         b = strconv.AppendInt(b, int64(t.Hour()), 10)
494         b = append(b, yo.timeSeparator...)
495
496         if t.Minute() < 10 {
497                 b = append(b, '0')
498         }
499
500         b = strconv.AppendInt(b, int64(t.Minute()), 10)
501
502         return string(b)
503 }
504
505 // FmtTimeMedium returns the medium time representation of 't' for 'yo_NG'
506 func (yo *yo_NG) FmtTimeMedium(t time.Time) string {
507
508         b := make([]byte, 0, 32)
509
510         if t.Hour() < 10 {
511                 b = append(b, '0')
512         }
513
514         b = strconv.AppendInt(b, int64(t.Hour()), 10)
515         b = append(b, yo.timeSeparator...)
516
517         if t.Minute() < 10 {
518                 b = append(b, '0')
519         }
520
521         b = strconv.AppendInt(b, int64(t.Minute()), 10)
522         b = append(b, yo.timeSeparator...)
523
524         if t.Second() < 10 {
525                 b = append(b, '0')
526         }
527
528         b = strconv.AppendInt(b, int64(t.Second()), 10)
529
530         return string(b)
531 }
532
533 // FmtTimeLong returns the long time representation of 't' for 'yo_NG'
534 func (yo *yo_NG) FmtTimeLong(t time.Time) string {
535
536         b := make([]byte, 0, 32)
537
538         if t.Hour() < 10 {
539                 b = append(b, '0')
540         }
541
542         b = strconv.AppendInt(b, int64(t.Hour()), 10)
543         b = append(b, yo.timeSeparator...)
544
545         if t.Minute() < 10 {
546                 b = append(b, '0')
547         }
548
549         b = strconv.AppendInt(b, int64(t.Minute()), 10)
550         b = append(b, yo.timeSeparator...)
551
552         if t.Second() < 10 {
553                 b = append(b, '0')
554         }
555
556         b = strconv.AppendInt(b, int64(t.Second()), 10)
557         b = append(b, []byte{0x20}...)
558
559         tz, _ := t.Zone()
560         b = append(b, tz...)
561
562         return string(b)
563 }
564
565 // FmtTimeFull returns the full time representation of 't' for 'yo_NG'
566 func (yo *yo_NG) FmtTimeFull(t time.Time) string {
567
568         b := make([]byte, 0, 32)
569
570         if t.Hour() < 10 {
571                 b = append(b, '0')
572         }
573
574         b = strconv.AppendInt(b, int64(t.Hour()), 10)
575         b = append(b, yo.timeSeparator...)
576
577         if t.Minute() < 10 {
578                 b = append(b, '0')
579         }
580
581         b = strconv.AppendInt(b, int64(t.Minute()), 10)
582         b = append(b, yo.timeSeparator...)
583
584         if t.Second() < 10 {
585                 b = append(b, '0')
586         }
587
588         b = strconv.AppendInt(b, int64(t.Second()), 10)
589         b = append(b, []byte{0x20}...)
590
591         tz, _ := t.Zone()
592
593         if btz, ok := yo.timezones[tz]; ok {
594                 b = append(b, btz...)
595         } else {
596                 b = append(b, tz...)
597         }
598
599         return string(b)
600 }