1 package fr_LU
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 fr_LU 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
26 currencyPositiveSuffix 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
47 func New() locales.Translator {
48 return &fr_LU{
49 locale: "fr_LU",
50 pluralsCardinal: []locales.PluralRule{2, 6},
51 pluralsOrdinal: []locales.PluralRule{2, 6},
52 pluralsRange: []locales.PluralRule{2, 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", "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", "CNH", "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", "F", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MRU", "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", "STN", "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", "UYW", "UZS", "VEB", "VEF", "VES", "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 currencyPositiveSuffix: " ",
63 currencyNegativePrefix: "(",
64 currencyNegativeSuffix: " )",
65 monthsAbbreviated: []string{"", "janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."},
66 monthsNarrow: []string{"", "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"},
67 monthsWide: []string{"", "janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"},
68 daysAbbreviated: []string{"dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."},
69 daysNarrow: []string{"D", "L", "M", "M", "J", "V", "S"},
70 daysShort: []string{"di", "lu", "ma", "me", "je", "ve", "sa"},
71 daysWide: []string{"dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"},
72 periodsAbbreviated: []string{"AM", "PM"},
73 periodsNarrow: []string{"AM", "PM"},
74 periodsWide: []string{"AM", "PM"},
75 erasAbbreviated: []string{"av. J.-C.", "ap. J.-C."},
76 erasNarrow: []string{"av. J.-C.", "ap. J.-C."},
77 erasWide: []string{"avant Jésus-Christ", "après Jésus-Christ"},
78 timezones: map[string]string{"ACDT": "heure d’été du centre de l’Australie", "ACST": "heure normale du centre de l’Australie", "ACWDT": "heure d’été du centre-ouest de l’Australie", "ACWST": "heure normale du centre-ouest de l’Australie", "ADT": "heure d’été de l’Atlantique", "AEDT": "heure d’été de l’Est de l’Australie", "AEST": "heure normale de l’Est de l’Australie", "AKDT": "heure d’été de l’Alaska", "AKST": "heure normale de l’Alaska", "ARST": "heure d’été de l’Argentine", "ART": "heure normale d’Argentine", "AST": "heure normale de l’Atlantique", "AWDT": "heure d’été de l’Ouest de l’Australie", "AWST": "heure normale de l’Ouest de l’Australie", "BOT": "heure de Bolivie", "BT": "heure du Bhoutan", "CAT": "heure normale d’Afrique centrale", "CDT": "heure d’été du Centre", "CHADT": "heure d’été des îles Chatham", "CHAST": "heure normale des îles Chatham", "CLST": "heure d’été du Chili", "CLT": "heure normale du Chili", "COST": "heure d’été de Colombie", "COT": "heure normale de Colombie", "CST": "heure normale du centre nord-américain", "ChST": "heure des Chamorro", "EAT": "heure normale d’Afrique de l’Est", "ECT": "heure de l’Équateur", "EDT": "heure d’été de l’Est", "EST": "heure normale de l’Est nord-américain", "GFT": "heure de la Guyane française", "GMT": "heure moyenne de Greenwich", "GST": "heure du Golfe", "GYT": "heure du Guyana", "HADT": "heure d’été d’Hawaii - Aléoutiennes", "HAST": "heure normale d’Hawaii - Aléoutiennes", "HAT": "heure d’été de Terre-Neuve", "HECU": "heure d’été de Cuba", "HEEG": "heure d’été de l’Est du Groenland", "HENOMX": "heure d’été du Nord-Ouest du Mexique", "HEOG": "heure d’été de l’Ouest du Groenland", "HEPM": "heure d’été de Saint-Pierre-et-Miquelon", "HEPMX": "heure d’été du Pacifique mexicain", "HKST": "heure d’été de Hong Kong", "HKT": "heure normale de Hong Kong", "HNCU": "heure normale de Cuba", "HNEG": "heure normale de l’Est du Groenland", "HNNOMX": "heure normale du Nord-Ouest du Mexique", "HNOG": "heure normale de l’Ouest du Groenland", "HNPM": "heure normale de Saint-Pierre-et-Miquelon", "HNPMX": "heure normale du Pacifique mexicain", "HNT": "heure normale de Terre-Neuve", "IST": "heure de l’Inde", "JDT": "heure d’été du Japon", "JST": "heure normale du Japon", "LHDT": "heure d’été de Lord Howe", "LHST": "heure normale de Lord Howe", "MDT": "heure d’été de Macao", "MESZ": "heure d’été d’Europe centrale", "MEZ": "heure normale d’Europe centrale", "MST": "heure normale de Macao", "MYT": "heure de la Malaisie", "NZDT": "heure d’été de la Nouvelle-Zélande", "NZST": "heure normale de la Nouvelle-Zélande", "OESZ": "heure d’été d’Europe de l’Est", "OEZ": "heure normale d’Europe de l’Est", "PDT": "heure d’été du Pacifique", "PST": "heure normale du Pacifique nord-américain", "SAST": "heure normale d’Afrique méridionale", "SGT": "heure de Singapour", "SRT": "heure du Suriname", "TMST": "heure d’été du Turkménistan", "TMT": "heure normale du Turkménistan", "UYST": "heure d’été de l’Uruguay", "UYT": "heure normale de l’Uruguay", "VET": "heure du Venezuela", "WARST": "heure d’été de l’Ouest argentin", "WART": "heure normale de l’Ouest argentin", "WAST": "heure d’été d’Afrique de l’Ouest", "WAT": "heure normale d’Afrique de l’Ouest", "WESZ": "heure d’été d’Europe de l’Ouest", "WEZ": "heure normale d’Europe de l’Ouest", "WIB": "heure de l’Ouest indonésien", "WIT": "heure de l’Est indonésien", "WITA": "heure du Centre indonésien", "∅∅∅": "heure d’été du Pérou"},
79 }
80 }
81
82
83 func (fr *fr_LU) Locale() string {
84 return fr.locale
85 }
86
87
88 func (fr *fr_LU) PluralsCardinal() []locales.PluralRule {
89 return fr.pluralsCardinal
90 }
91
92
93 func (fr *fr_LU) PluralsOrdinal() []locales.PluralRule {
94 return fr.pluralsOrdinal
95 }
96
97
98 func (fr *fr_LU) PluralsRange() []locales.PluralRule {
99 return fr.pluralsRange
100 }
101
102
103 func (fr *fr_LU) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
104
105 n := math.Abs(num)
106 i := int64(n)
107
108 if i == 0 || i == 1 {
109 return locales.PluralRuleOne
110 }
111
112 return locales.PluralRuleOther
113 }
114
115
116 func (fr *fr_LU) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
117
118 n := math.Abs(num)
119
120 if n == 1 {
121 return locales.PluralRuleOne
122 }
123
124 return locales.PluralRuleOther
125 }
126
127
128 func (fr *fr_LU) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
129
130 start := fr.CardinalPluralRule(num1, v1)
131 end := fr.CardinalPluralRule(num2, v2)
132
133 if start == locales.PluralRuleOne && end == locales.PluralRuleOne {
134 return locales.PluralRuleOne
135 } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
136 return locales.PluralRuleOther
137 }
138
139 return locales.PluralRuleOther
140
141 }
142
143
144 func (fr *fr_LU) MonthAbbreviated(month time.Month) string {
145 return fr.monthsAbbreviated[month]
146 }
147
148
149 func (fr *fr_LU) MonthsAbbreviated() []string {
150 return fr.monthsAbbreviated[1:]
151 }
152
153
154 func (fr *fr_LU) MonthNarrow(month time.Month) string {
155 return fr.monthsNarrow[month]
156 }
157
158
159 func (fr *fr_LU) MonthsNarrow() []string {
160 return fr.monthsNarrow[1:]
161 }
162
163
164 func (fr *fr_LU) MonthWide(month time.Month) string {
165 return fr.monthsWide[month]
166 }
167
168
169 func (fr *fr_LU) MonthsWide() []string {
170 return fr.monthsWide[1:]
171 }
172
173
174 func (fr *fr_LU) WeekdayAbbreviated(weekday time.Weekday) string {
175 return fr.daysAbbreviated[weekday]
176 }
177
178
179 func (fr *fr_LU) WeekdaysAbbreviated() []string {
180 return fr.daysAbbreviated
181 }
182
183
184 func (fr *fr_LU) WeekdayNarrow(weekday time.Weekday) string {
185 return fr.daysNarrow[weekday]
186 }
187
188
189 func (fr *fr_LU) WeekdaysNarrow() []string {
190 return fr.daysNarrow
191 }
192
193
194 func (fr *fr_LU) WeekdayShort(weekday time.Weekday) string {
195 return fr.daysShort[weekday]
196 }
197
198
199 func (fr *fr_LU) WeekdaysShort() []string {
200 return fr.daysShort
201 }
202
203
204 func (fr *fr_LU) WeekdayWide(weekday time.Weekday) string {
205 return fr.daysWide[weekday]
206 }
207
208
209 func (fr *fr_LU) WeekdaysWide() []string {
210 return fr.daysWide
211 }
212
213
214 func (fr *fr_LU) Decimal() string {
215 return fr.decimal
216 }
217
218
219 func (fr *fr_LU) Group() string {
220 return fr.group
221 }
222
223
224 func (fr *fr_LU) Minus() string {
225 return fr.minus
226 }
227
228
229 func (fr *fr_LU) FmtNumber(num float64, v uint64) string {
230
231 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
232 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
233 count := 0
234 inWhole := v == 0
235 b := make([]byte, 0, l)
236
237 for i := len(s) - 1; i >= 0; i-- {
238
239 if s[i] == '.' {
240 b = append(b, fr.decimal[0])
241 inWhole = true
242 continue
243 }
244
245 if inWhole {
246 if count == 3 {
247 b = append(b, fr.group[0])
248 count = 1
249 } else {
250 count++
251 }
252 }
253
254 b = append(b, s[i])
255 }
256
257 if num < 0 {
258 b = append(b, fr.minus[0])
259 }
260
261
262 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
263 b[i], b[j] = b[j], b[i]
264 }
265
266 return string(b)
267 }
268
269
270
271 func (fr *fr_LU) FmtPercent(num float64, v uint64) string {
272 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
273 l := len(s) + 5
274 b := make([]byte, 0, l)
275
276 for i := len(s) - 1; i >= 0; i-- {
277
278 if s[i] == '.' {
279 b = append(b, fr.decimal[0])
280 continue
281 }
282
283 b = append(b, s[i])
284 }
285
286 if num < 0 {
287 b = append(b, fr.minus[0])
288 }
289
290
291 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
292 b[i], b[j] = b[j], b[i]
293 }
294
295 b = append(b, fr.percentSuffix...)
296
297 b = append(b, fr.percent...)
298
299 return string(b)
300 }
301
302
303 func (fr *fr_LU) FmtCurrency(num float64, v uint64, currency currency.Type) string {
304
305 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
306 symbol := fr.currencies[currency]
307 l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
308 count := 0
309 inWhole := v == 0
310 b := make([]byte, 0, l)
311
312 for i := len(s) - 1; i >= 0; i-- {
313
314 if s[i] == '.' {
315 b = append(b, fr.decimal[0])
316 inWhole = true
317 continue
318 }
319
320 if inWhole {
321 if count == 3 {
322 b = append(b, fr.group[0])
323 count = 1
324 } else {
325 count++
326 }
327 }
328
329 b = append(b, s[i])
330 }
331
332 if num < 0 {
333 b = append(b, fr.minus[0])
334 }
335
336
337 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
338 b[i], b[j] = b[j], b[i]
339 }
340
341 if int(v) < 2 {
342
343 if v == 0 {
344 b = append(b, fr.decimal...)
345 }
346
347 for i := 0; i < 2-int(v); i++ {
348 b = append(b, '0')
349 }
350 }
351
352 b = append(b, fr.currencyPositiveSuffix...)
353
354 b = append(b, symbol...)
355
356 return string(b)
357 }
358
359
360
361 func (fr *fr_LU) FmtAccounting(num float64, v uint64, currency currency.Type) string {
362
363 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
364 symbol := fr.currencies[currency]
365 l := len(s) + len(symbol) + 6 + 1*len(s[:len(s)-int(v)-1])/3
366 count := 0
367 inWhole := v == 0
368 b := make([]byte, 0, l)
369
370 for i := len(s) - 1; i >= 0; i-- {
371
372 if s[i] == '.' {
373 b = append(b, fr.decimal[0])
374 inWhole = true
375 continue
376 }
377
378 if inWhole {
379 if count == 3 {
380 b = append(b, fr.group[0])
381 count = 1
382 } else {
383 count++
384 }
385 }
386
387 b = append(b, s[i])
388 }
389
390 if num < 0 {
391
392 b = append(b, fr.currencyNegativePrefix[0])
393
394 }
395
396
397 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
398 b[i], b[j] = b[j], b[i]
399 }
400
401 if int(v) < 2 {
402
403 if v == 0 {
404 b = append(b, fr.decimal...)
405 }
406
407 for i := 0; i < 2-int(v); i++ {
408 b = append(b, '0')
409 }
410 }
411
412 if num < 0 {
413 b = append(b, fr.currencyNegativeSuffix...)
414 b = append(b, symbol...)
415 } else {
416
417 b = append(b, fr.currencyPositiveSuffix...)
418 b = append(b, symbol...)
419 }
420
421 return string(b)
422 }
423
424
425 func (fr *fr_LU) FmtDateShort(t time.Time) string {
426
427 b := make([]byte, 0, 32)
428
429 if t.Day() < 10 {
430 b = append(b, '0')
431 }
432
433 b = strconv.AppendInt(b, int64(t.Day()), 10)
434 b = append(b, []byte{0x2f}...)
435
436 if t.Month() < 10 {
437 b = append(b, '0')
438 }
439
440 b = strconv.AppendInt(b, int64(t.Month()), 10)
441
442 b = append(b, []byte{0x2f}...)
443
444 if t.Year() > 0 {
445 b = strconv.AppendInt(b, int64(t.Year()), 10)
446 } else {
447 b = strconv.AppendInt(b, int64(-t.Year()), 10)
448 }
449
450 return string(b)
451 }
452
453
454 func (fr *fr_LU) FmtDateMedium(t time.Time) string {
455
456 b := make([]byte, 0, 32)
457
458 b = strconv.AppendInt(b, int64(t.Day()), 10)
459 b = append(b, []byte{0x20}...)
460 b = append(b, fr.monthsAbbreviated[t.Month()]...)
461 b = append(b, []byte{0x20}...)
462
463 if t.Year() > 0 {
464 b = strconv.AppendInt(b, int64(t.Year()), 10)
465 } else {
466 b = strconv.AppendInt(b, int64(-t.Year()), 10)
467 }
468
469 return string(b)
470 }
471
472
473 func (fr *fr_LU) FmtDateLong(t time.Time) string {
474
475 b := make([]byte, 0, 32)
476
477 b = strconv.AppendInt(b, int64(t.Day()), 10)
478 b = append(b, []byte{0x20}...)
479 b = append(b, fr.monthsWide[t.Month()]...)
480 b = append(b, []byte{0x20}...)
481
482 if t.Year() > 0 {
483 b = strconv.AppendInt(b, int64(t.Year()), 10)
484 } else {
485 b = strconv.AppendInt(b, int64(-t.Year()), 10)
486 }
487
488 return string(b)
489 }
490
491
492 func (fr *fr_LU) FmtDateFull(t time.Time) string {
493
494 b := make([]byte, 0, 32)
495
496 b = append(b, fr.daysWide[t.Weekday()]...)
497 b = append(b, []byte{0x20}...)
498 b = strconv.AppendInt(b, int64(t.Day()), 10)
499 b = append(b, []byte{0x20}...)
500 b = append(b, fr.monthsWide[t.Month()]...)
501 b = append(b, []byte{0x20}...)
502
503 if t.Year() > 0 {
504 b = strconv.AppendInt(b, int64(t.Year()), 10)
505 } else {
506 b = strconv.AppendInt(b, int64(-t.Year()), 10)
507 }
508
509 return string(b)
510 }
511
512
513 func (fr *fr_LU) FmtTimeShort(t time.Time) string {
514
515 b := make([]byte, 0, 32)
516
517 if t.Hour() < 10 {
518 b = append(b, '0')
519 }
520
521 b = strconv.AppendInt(b, int64(t.Hour()), 10)
522 b = append(b, fr.timeSeparator...)
523
524 if t.Minute() < 10 {
525 b = append(b, '0')
526 }
527
528 b = strconv.AppendInt(b, int64(t.Minute()), 10)
529
530 return string(b)
531 }
532
533
534 func (fr *fr_LU) FmtTimeMedium(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, fr.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, fr.timeSeparator...)
551
552 if t.Second() < 10 {
553 b = append(b, '0')
554 }
555
556 b = strconv.AppendInt(b, int64(t.Second()), 10)
557
558 return string(b)
559 }
560
561
562 func (fr *fr_LU) FmtTimeLong(t time.Time) string {
563
564 b := make([]byte, 0, 32)
565
566 if t.Hour() < 10 {
567 b = append(b, '0')
568 }
569
570 b = strconv.AppendInt(b, int64(t.Hour()), 10)
571 b = append(b, fr.timeSeparator...)
572
573 if t.Minute() < 10 {
574 b = append(b, '0')
575 }
576
577 b = strconv.AppendInt(b, int64(t.Minute()), 10)
578 b = append(b, fr.timeSeparator...)
579
580 if t.Second() < 10 {
581 b = append(b, '0')
582 }
583
584 b = strconv.AppendInt(b, int64(t.Second()), 10)
585 b = append(b, []byte{0x20}...)
586
587 tz, _ := t.Zone()
588 b = append(b, tz...)
589
590 return string(b)
591 }
592
593
594 func (fr *fr_LU) FmtTimeFull(t time.Time) string {
595
596 b := make([]byte, 0, 32)
597
598 if t.Hour() < 10 {
599 b = append(b, '0')
600 }
601
602 b = strconv.AppendInt(b, int64(t.Hour()), 10)
603 b = append(b, fr.timeSeparator...)
604
605 if t.Minute() < 10 {
606 b = append(b, '0')
607 }
608
609 b = strconv.AppendInt(b, int64(t.Minute()), 10)
610 b = append(b, fr.timeSeparator...)
611
612 if t.Second() < 10 {
613 b = append(b, '0')
614 }
615
616 b = strconv.AppendInt(b, int64(t.Second()), 10)
617 b = append(b, []byte{0x20}...)
618
619 tz, _ := t.Zone()
620
621 if btz, ok := fr.timezones[tz]; ok {
622 b = append(b, btz...)
623 } else {
624 b = append(b, tz...)
625 }
626
627 return string(b)
628 }
629
View as plain text