8 "github.com/go-playground/locales"
9 "github.com/go-playground/locales/currency"
14 pluralsCardinal []locales.PluralRule
15 pluralsOrdinal []locales.PluralRule
16 pluralsRange []locales.PluralRule
24 currencies []string // idx = enum of currency code
25 currencyNegativePrefix string
26 currencyNegativeSuffix string
27 monthsAbbreviated []string
30 daysAbbreviated []string
34 periodsAbbreviated []string
35 periodsNarrow []string
38 erasAbbreviated []string
41 timezones map[string]string
44 // New returns a new instance of translator for the 'cy_GB' locale
45 func New() locales.Translator {
48 pluralsCardinal: []locales.PluralRule{1, 2, 3, 4, 5, 6},
49 pluralsOrdinal: []locales.PluralRule{1, 2, 3, 4, 5, 6},
50 pluralsRange: []locales.PluralRule{2, 3, 4, 5, 6},
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{"", "Ion", "Chwef", "Maw", "Ebrill", "Mai", "Meh", "Gorff", "Awst", "Medi", "Hyd", "Tach", "Rhag"},
62 monthsNarrow: []string{"", "I", "Ch", "M", "E", "M", "M", "G", "A", "M", "H", "T", "Rh"},
63 monthsWide: []string{"", "Ionawr", "Chwefror", "Mawrth", "Ebrill", "Mai", "Mehefin", "Gorffennaf", "Awst", "Medi", "Hydref", "Tachwedd", "Rhagfyr"},
64 daysAbbreviated: []string{"Sul", "Llun", "Maw", "Mer", "Iau", "Gwen", "Sad"},
65 daysNarrow: []string{"S", "Ll", "M", "M", "I", "G", "S"},
66 daysShort: []string{"Su", "Ll", "Ma", "Me", "Ia", "Gw", "Sa"},
67 daysWide: []string{"Dydd Sul", "Dydd Llun", "Dydd Mawrth", "Dydd Mercher", "Dydd Iau", "Dydd Gwener", "Dydd Sadwrn"},
68 periodsAbbreviated: []string{"yb", "yh"},
69 periodsNarrow: []string{"b", "h"},
70 periodsWide: []string{"yb", "yh"},
71 erasAbbreviated: []string{"CC", "OC"},
72 erasNarrow: []string{"C", "O"},
73 erasWide: []string{"Cyn Crist", "Oed Crist"},
74 timezones: map[string]string{"MYT": "Amser Malaysia", "UYST": "Amser Haf Uruguay", "HADT": "Amser Haf Hawaii-Aleutian", "WITA": "Amser Canolbarth Indonesia", "WARST": "Amser Haf Gorllewin Ariannin", "HEPM": "Amser Haf Saint-Pierre-et-Miquelon", "MST": "MST", "WAT": "Amser Safonol Gorllewin Affrica", "WIB": "Amser Gorllewin Indonesia", "ACWDT": "Amser Haf Canolbarth Gorllewin Awstralia", "AWST": "Amser Safonol Gorllewin Awstralia", "HENOMX": "Amser Haf Gogledd Orllewin Mecsico", "HKST": "Amser Haf Hong Kong", "GYT": "Amser Guyana", "PST": "Amser Safonol Cefnfor Tawel Gogledd America", "WART": "Amser Safonol Gorllewin Ariannin", "EST": "Amser Safonol Dwyrain Gogledd America", "WESZ": "Amser Haf Gorllewin Ewrop", "HAST": "Amser Safonol Hawaii-Aleutian", "CAT": "Amser Canolbarth Affrica", "GMT": "Amser Safonol Greenwich", "HECU": "Amser Haf Cuba", "ACWST": "Amser Safonol Canolbarth Gorllewin Awstralia", "UYT": "Amser Safonol Uruguay", "NZST": "Amser Safonol Seland Newydd", "LHST": "Amser Safonol yr Arglwydd Howe", "LHDT": "Amser Haf yr Arglwydd Howe", "SGT": "Amser Singapore", "CHAST": "Amser Safonol Chatham", "HNOG": "Amser Safonol Gorllewin yr Ynys Las", "SAST": "Amser Safonol De Affrica", "AEST": "Amser Safonol Dwyrain Awstralia", "ARST": "Amser Haf Ariannin", "HAT": "Amser Haf Newfoundland", "AKST": "Amser Safonol Alaska", "IST": "Amser India", "HEPMX": "Amser Haf Pasiffig Mecsico", "BOT": "Amser Bolivia", "HNNOMX": "Amser Safonol Gogledd Orllewin Mecsico", "ART": "Amser Safonol Ariannin", "WAST": "Amser Haf Gorllewin Affrica", "CLST": "Amser Haf Chile", "ACDT": "Amser Haf Canolbarth Awstralia", "∅∅∅": "Amser Haf Amazonas", "COST": "Amser Haf Colombia", "TMT": "Amser Safonol Tyrcmenistan", "ADT": "Amser Haf Cefnfor yr Iwerydd", "ECT": "Amser Ecuador", "CST": "Amser Safonol Canolbarth Gogledd America", "CDT": "Amser Haf Canolbarth Gogledd America", "AWDT": "Amser Haf Gorllewin Awstralia", "HNPMX": "Amser Safonol Pasiffig Mecsico", "HNCU": "Amser Safonol Cuba", "CHADT": "Amser Haf Chatham", "MDT": "MDT", "HNEG": "Amser Safonol Dwyrain yr Ynys Las", "AKDT": "Amser Haf Alaska", "PDT": "Amser Haf Cefnfor Tawel Gogledd America", "AST": "Amser Safonol Cefnfor yr Iwerydd", "CLT": "Amser Safonol Chile", "WEZ": "Amser Safonol Gorllewin Ewrop", "SRT": "Amser Suriname", "HEOG": "Amser Haf Gorllewin yr Ynys Las", "EAT": "Amser Dwyrain Affrica", "HKT": "Amser Safonol Hong Kong", "NZDT": "Amser Haf Seland Newydd", "OESZ": "Amser Haf Dwyrain Ewrop", "MESZ": "Amser Haf Canolbarth Ewrop", "ACST": "Amser Safonol Canolbarth Awstralia", "ChST": "Amser Chamorro", "WIT": "Amser Dwyrain Indonesia", "MEZ": "Amser Safonol Canolbarth Ewrop", "OEZ": "Amser Safonol Dwyrain Ewrop", "VET": "Amser Venezuela", "HEEG": "Amser Haf Dwyrain yr Ynys Las", "COT": "Amser Safonol Colombia", "EDT": "Amser Haf Dwyrain Gogledd America", "BT": "Amser Bhutan", "GFT": "Amser Guyane Ffrengig", "JST": "Amser Safonol Siapan", "JDT": "Amser Haf Siapan", "AEDT": "Amser Haf Dwyrain Awstralia", "HNT": "Amser Safonol Newfoundland", "HNPM": "Amser Safonol Saint-Pierre-et-Miquelon", "TMST": "Amser Haf Tyrcmenistan"},
78 // Locale returns the current translators string locale
79 func (cy *cy_GB) Locale() string {
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'cy_GB'
84 func (cy *cy_GB) PluralsCardinal() []locales.PluralRule {
85 return cy.pluralsCardinal
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'cy_GB'
89 func (cy *cy_GB) PluralsOrdinal() []locales.PluralRule {
90 return cy.pluralsOrdinal
93 // PluralsRange returns the list of range plural rules associated with 'cy_GB'
94 func (cy *cy_GB) PluralsRange() []locales.PluralRule {
95 return cy.pluralsRange
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'cy_GB'
99 func (cy *cy_GB) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
104 return locales.PluralRuleZero
106 return locales.PluralRuleOne
108 return locales.PluralRuleTwo
110 return locales.PluralRuleFew
112 return locales.PluralRuleMany
115 return locales.PluralRuleOther
118 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'cy_GB'
119 func (cy *cy_GB) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
123 if n == 0 || n == 7 || n == 8 || n == 9 {
124 return locales.PluralRuleZero
126 return locales.PluralRuleOne
128 return locales.PluralRuleTwo
129 } else if n == 3 || n == 4 {
130 return locales.PluralRuleFew
131 } else if n == 5 || n == 6 {
132 return locales.PluralRuleMany
135 return locales.PluralRuleOther
138 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'cy_GB'
139 func (cy *cy_GB) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
141 start := cy.CardinalPluralRule(num1, v1)
142 end := cy.CardinalPluralRule(num2, v2)
144 if start == locales.PluralRuleZero && end == locales.PluralRuleOne {
145 return locales.PluralRuleOne
146 } else if start == locales.PluralRuleZero && end == locales.PluralRuleTwo {
147 return locales.PluralRuleTwo
148 } else if start == locales.PluralRuleZero && end == locales.PluralRuleFew {
149 return locales.PluralRuleFew
150 } else if start == locales.PluralRuleZero && end == locales.PluralRuleMany {
151 return locales.PluralRuleMany
152 } else if start == locales.PluralRuleZero && end == locales.PluralRuleOther {
153 return locales.PluralRuleOther
154 } else if start == locales.PluralRuleOne && end == locales.PluralRuleTwo {
155 return locales.PluralRuleTwo
156 } else if start == locales.PluralRuleOne && end == locales.PluralRuleFew {
157 return locales.PluralRuleFew
158 } else if start == locales.PluralRuleOne && end == locales.PluralRuleMany {
159 return locales.PluralRuleMany
160 } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
161 return locales.PluralRuleOther
162 } else if start == locales.PluralRuleTwo && end == locales.PluralRuleFew {
163 return locales.PluralRuleFew
164 } else if start == locales.PluralRuleTwo && end == locales.PluralRuleMany {
165 return locales.PluralRuleMany
166 } else if start == locales.PluralRuleTwo && end == locales.PluralRuleOther {
167 return locales.PluralRuleOther
168 } else if start == locales.PluralRuleFew && end == locales.PluralRuleMany {
169 return locales.PluralRuleMany
170 } else if start == locales.PluralRuleFew && end == locales.PluralRuleOther {
171 return locales.PluralRuleOther
172 } else if start == locales.PluralRuleMany && end == locales.PluralRuleOther {
173 return locales.PluralRuleOther
174 } else if start == locales.PluralRuleOther && end == locales.PluralRuleOne {
175 return locales.PluralRuleOne
176 } else if start == locales.PluralRuleOther && end == locales.PluralRuleTwo {
177 return locales.PluralRuleTwo
178 } else if start == locales.PluralRuleOther && end == locales.PluralRuleFew {
179 return locales.PluralRuleFew
180 } else if start == locales.PluralRuleOther && end == locales.PluralRuleMany {
181 return locales.PluralRuleMany
184 return locales.PluralRuleOther
188 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
189 func (cy *cy_GB) MonthAbbreviated(month time.Month) string {
190 return cy.monthsAbbreviated[month]
193 // MonthsAbbreviated returns the locales abbreviated months
194 func (cy *cy_GB) MonthsAbbreviated() []string {
195 return cy.monthsAbbreviated[1:]
198 // MonthNarrow returns the locales narrow month given the 'month' provided
199 func (cy *cy_GB) MonthNarrow(month time.Month) string {
200 return cy.monthsNarrow[month]
203 // MonthsNarrow returns the locales narrow months
204 func (cy *cy_GB) MonthsNarrow() []string {
205 return cy.monthsNarrow[1:]
208 // MonthWide returns the locales wide month given the 'month' provided
209 func (cy *cy_GB) MonthWide(month time.Month) string {
210 return cy.monthsWide[month]
213 // MonthsWide returns the locales wide months
214 func (cy *cy_GB) MonthsWide() []string {
215 return cy.monthsWide[1:]
218 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
219 func (cy *cy_GB) WeekdayAbbreviated(weekday time.Weekday) string {
220 return cy.daysAbbreviated[weekday]
223 // WeekdaysAbbreviated returns the locales abbreviated weekdays
224 func (cy *cy_GB) WeekdaysAbbreviated() []string {
225 return cy.daysAbbreviated
228 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
229 func (cy *cy_GB) WeekdayNarrow(weekday time.Weekday) string {
230 return cy.daysNarrow[weekday]
233 // WeekdaysNarrow returns the locales narrow weekdays
234 func (cy *cy_GB) WeekdaysNarrow() []string {
238 // WeekdayShort returns the locales short weekday given the 'weekday' provided
239 func (cy *cy_GB) WeekdayShort(weekday time.Weekday) string {
240 return cy.daysShort[weekday]
243 // WeekdaysShort returns the locales short weekdays
244 func (cy *cy_GB) WeekdaysShort() []string {
248 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
249 func (cy *cy_GB) WeekdayWide(weekday time.Weekday) string {
250 return cy.daysWide[weekday]
253 // WeekdaysWide returns the locales wide weekdays
254 func (cy *cy_GB) WeekdaysWide() []string {
258 // Decimal returns the decimal point of number
259 func (cy *cy_GB) Decimal() string {
263 // Group returns the group of number
264 func (cy *cy_GB) Group() string {
268 // Group returns the minus sign of number
269 func (cy *cy_GB) Minus() string {
273 // FmtNumber returns 'num' with digits/precision of 'v' for 'cy_GB' and handles both Whole and Real numbers based on 'v'
274 func (cy *cy_GB) FmtNumber(num float64, v uint64) string {
276 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
277 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
280 b := make([]byte, 0, l)
282 for i := len(s) - 1; i >= 0; i-- {
285 b = append(b, cy.decimal[0])
292 b = append(b, cy.group[0])
303 b = append(b, cy.minus[0])
307 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
308 b[i], b[j] = b[j], b[i]
314 // FmtPercent returns 'num' with digits/precision of 'v' for 'cy_GB' and handles both Whole and Real numbers based on 'v'
315 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
316 func (cy *cy_GB) FmtPercent(num float64, v uint64) string {
317 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
319 b := make([]byte, 0, l)
321 for i := len(s) - 1; i >= 0; i-- {
324 b = append(b, cy.decimal[0])
332 b = append(b, cy.minus[0])
336 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
337 b[i], b[j] = b[j], b[i]
340 b = append(b, cy.percent...)
345 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'cy_GB'
346 func (cy *cy_GB) FmtCurrency(num float64, v uint64, currency currency.Type) string {
348 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
349 symbol := cy.currencies[currency]
350 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
353 b := make([]byte, 0, l)
355 for i := len(s) - 1; i >= 0; i-- {
358 b = append(b, cy.decimal[0])
365 b = append(b, cy.group[0])
375 for j := len(symbol) - 1; j >= 0; j-- {
376 b = append(b, symbol[j])
380 b = append(b, cy.minus[0])
384 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
385 b[i], b[j] = b[j], b[i]
391 b = append(b, cy.decimal...)
394 for i := 0; i < 2-int(v); i++ {
402 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'cy_GB'
403 // in accounting notation.
404 func (cy *cy_GB) FmtAccounting(num float64, v uint64, currency currency.Type) string {
406 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
407 symbol := cy.currencies[currency]
408 l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
411 b := make([]byte, 0, l)
413 for i := len(s) - 1; i >= 0; i-- {
416 b = append(b, cy.decimal[0])
423 b = append(b, cy.group[0])
435 for j := len(symbol) - 1; j >= 0; j-- {
436 b = append(b, symbol[j])
439 b = append(b, cy.currencyNegativePrefix[0])
443 for j := len(symbol) - 1; j >= 0; j-- {
444 b = append(b, symbol[j])
450 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
451 b[i], b[j] = b[j], b[i]
457 b = append(b, cy.decimal...)
460 for i := 0; i < 2-int(v); i++ {
466 b = append(b, cy.currencyNegativeSuffix...)
472 // FmtDateShort returns the short date representation of 't' for 'cy_GB'
473 func (cy *cy_GB) FmtDateShort(t time.Time) string {
475 b := make([]byte, 0, 32)
481 b = strconv.AppendInt(b, int64(t.Day()), 10)
482 b = append(b, []byte{0x2f}...)
488 b = strconv.AppendInt(b, int64(t.Month()), 10)
490 b = append(b, []byte{0x2f}...)
493 b = append(b, strconv.Itoa(t.Year())[2:]...)
495 b = append(b, strconv.Itoa(t.Year())[1:]...)
501 // FmtDateMedium returns the medium date representation of 't' for 'cy_GB'
502 func (cy *cy_GB) FmtDateMedium(t time.Time) string {
504 b := make([]byte, 0, 32)
506 b = strconv.AppendInt(b, int64(t.Day()), 10)
507 b = append(b, []byte{0x20}...)
508 b = append(b, cy.monthsAbbreviated[t.Month()]...)
509 b = append(b, []byte{0x20}...)
512 b = strconv.AppendInt(b, int64(t.Year()), 10)
514 b = strconv.AppendInt(b, int64(-t.Year()), 10)
520 // FmtDateLong returns the long date representation of 't' for 'cy_GB'
521 func (cy *cy_GB) FmtDateLong(t time.Time) string {
523 b := make([]byte, 0, 32)
525 b = strconv.AppendInt(b, int64(t.Day()), 10)
526 b = append(b, []byte{0x20}...)
527 b = append(b, cy.monthsWide[t.Month()]...)
528 b = append(b, []byte{0x20}...)
531 b = strconv.AppendInt(b, int64(t.Year()), 10)
533 b = strconv.AppendInt(b, int64(-t.Year()), 10)
539 // FmtDateFull returns the full date representation of 't' for 'cy_GB'
540 func (cy *cy_GB) FmtDateFull(t time.Time) string {
542 b := make([]byte, 0, 32)
544 b = append(b, cy.daysWide[t.Weekday()]...)
545 b = append(b, []byte{0x2c, 0x20}...)
546 b = strconv.AppendInt(b, int64(t.Day()), 10)
547 b = append(b, []byte{0x20}...)
548 b = append(b, cy.monthsWide[t.Month()]...)
549 b = append(b, []byte{0x20}...)
552 b = strconv.AppendInt(b, int64(t.Year()), 10)
554 b = strconv.AppendInt(b, int64(-t.Year()), 10)
560 // FmtTimeShort returns the short time representation of 't' for 'cy_GB'
561 func (cy *cy_GB) FmtTimeShort(t time.Time) string {
563 b := make([]byte, 0, 32)
569 b = strconv.AppendInt(b, int64(t.Hour()), 10)
570 b = append(b, cy.timeSeparator...)
576 b = strconv.AppendInt(b, int64(t.Minute()), 10)
581 // FmtTimeMedium returns the medium time representation of 't' for 'cy_GB'
582 func (cy *cy_GB) FmtTimeMedium(t time.Time) string {
584 b := make([]byte, 0, 32)
590 b = strconv.AppendInt(b, int64(t.Hour()), 10)
591 b = append(b, cy.timeSeparator...)
597 b = strconv.AppendInt(b, int64(t.Minute()), 10)
598 b = append(b, cy.timeSeparator...)
604 b = strconv.AppendInt(b, int64(t.Second()), 10)
609 // FmtTimeLong returns the long time representation of 't' for 'cy_GB'
610 func (cy *cy_GB) FmtTimeLong(t time.Time) string {
612 b := make([]byte, 0, 32)
618 b = strconv.AppendInt(b, int64(t.Hour()), 10)
619 b = append(b, cy.timeSeparator...)
625 b = strconv.AppendInt(b, int64(t.Minute()), 10)
626 b = append(b, cy.timeSeparator...)
632 b = strconv.AppendInt(b, int64(t.Second()), 10)
633 b = append(b, []byte{0x20}...)
641 // FmtTimeFull returns the full time representation of 't' for 'cy_GB'
642 func (cy *cy_GB) FmtTimeFull(t time.Time) string {
644 b := make([]byte, 0, 32)
650 b = strconv.AppendInt(b, int64(t.Hour()), 10)
651 b = append(b, cy.timeSeparator...)
657 b = strconv.AppendInt(b, int64(t.Minute()), 10)
658 b = append(b, cy.timeSeparator...)
664 b = strconv.AppendInt(b, int64(t.Second()), 10)
665 b = append(b, []byte{0x20}...)
669 if btz, ok := cy.timezones[tz]; ok {
670 b = append(b, btz...)