OSDN Git Service

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