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 'am' locale
45 func New() locales.Translator {
48 pluralsCardinal: []locales.PluralRule{2, 6},
49 pluralsOrdinal: []locales.PluralRule{6},
50 pluralsRange: []locales.PluralRule{2, 6},
58 currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AU$", "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", "R$", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CA$", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNX", "CN¥", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ብር", "€", "FIM", "FJD", "FKP", "FRF", "£", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HK$", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "₪", "₹", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JP¥", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "₩", "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", "MX$", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZ$", "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", "฿", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "NT$", "TZS", "UAH", "UAK", "UGS", "UGX", "US$", "USN", "USS", "UYI", "UYP", "UYU", "UZS", "VEB", "VEF", "₫", "VNN", "VUV", "WST", "FCFA", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "EC$", "XDR", "XEU", "XFO", "XFU", "CFA", "XPD", "CFPF", "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{"", "ጃንዩ", "ፌብሩ", "ማርች", "ኤፕሪ", "ሜይ", "ጁን", "ጁላይ", "ኦገስ", "ሴፕቴ", "ኦክቶ", "ኖቬም", "ዲሴም"},
62 monthsNarrow: []string{"", "ጃ", "ፌ", "ማ", "ኤ", "ሜ", "ጁ", "ጁ", "ኦ", "ሴ", "ኦ", "ኖ", "ዲ"},
63 monthsWide: []string{"", "ጃንዩወሪ", "ፌብሩወሪ", "ማርች", "ኤፕሪል", "ሜይ", "ጁን", "ጁላይ", "ኦገስት", "ሴፕቴምበር", "ኦክቶበር", "ኖቬምበር", "ዲሴምበር"},
64 daysAbbreviated: []string{"እሑድ", "ሰኞ", "ማክሰ", "ረቡዕ", "ሐሙስ", "ዓርብ", "ቅዳሜ"},
65 daysNarrow: []string{"እ", "ሰ", "ማ", "ረ", "ሐ", "ዓ", "ቅ"},
66 daysShort: []string{"እ", "ሰ", "ማ", "ረ", "ሐ", "ዓ", "ቅ"},
67 daysWide: []string{"እሑድ", "ሰኞ", "ማክሰኞ", "ረቡዕ", "ሐሙስ", "ዓርብ", "ቅዳሜ"},
68 periodsAbbreviated: []string{"ጥዋት", "ከሰዓት"},
69 periodsNarrow: []string{"ጠ", "ከ"},
70 periodsWide: []string{"ጥዋት", "ከሰዓት"},
71 erasAbbreviated: []string{"ዓ/ዓ", "ዓ/ም"},
72 erasNarrow: []string{"ዓ/ዓ", "ዓ/ም"},
73 erasWide: []string{"ዓመተ ዓለም", "ዓመተ ምሕረት"},
74 timezones: map[string]string{"HKST": "የሆንግ ኮንግ ክረምት ሰዓት", "GYT": "የጉያና ሰዓት", "WIB": "የምዕራባዊ ኢንዶኔዢያ ሰዓት", "MESZ": "የመካከለኛው አውሮፓ ክረምት ሰዓት", "HADT": "የሃዋይ አሌኡት የቀን ሰዓት አቆጣጠር", "SAST": "የደቡብ አፍሪካ መደበኛ ሰዓት", "HKT": "የሆንግ ኮንግ መደበኛ ሰዓት", "HECU": "የኩባ የቀን ብርሃን ሰዓት", "ACWST": "የአውስትራሊያ መካከለኛ ምስራቃዊ መደበኛ ሰዓት አቆጣጠር", "ADT": "የአትላንቲክ የቀን ሰዓት አቆጣጠር", "AEST": "የአውስትራሊያ ምዕራባዊ መደበኛ የሰዓት አቆጣጠር", "IST": "የህንድ መደበኛ ሰዓት", "ARST": "የአርጀንቲና የበጋ ሰዓት አቆጣጠር", "HNEG": "የምስራቅ ግሪንላንድ መደበኛ ሰዓት", "UYST": "የኡራጓይ ክረምት ሰዓት", "TMT": "የቱርክመኒስታን መደበኛ ሰዓት", "TMST": "የቱርክመኒስታን ክረምት ሰዓት", "HENOMX": "ሰሜናዊ ምእራብ የሜክሲኮ የቀን ሰዓት አቆጣጠር", "OEZ": "የምስራቃዊ አውሮፓ መደበኛ ሰዓት", "EDT": "የምዕራባዊ የቀን ሰዓት አቆጣጠር", "MST": "MST", "HAST": "የሃዋይ አሌኡት መደበኛ ሰዓት አቆጣጠር", "JST": "የጃፓን መደበኛ ሰዓት", "GFT": "የፈረንሳይ ጉያና ሰዓት", "SGT": "የሲንጋፒር መደበኛ ሰዓት", "∅∅∅": "የብራዚላ የበጋ ሰዓት አቆጣጠር", "MEZ": "የመካከለኛው አውሮፓ መደበኛ ሰዓት", "HNNOMX": "ሰሜናዊ ምእራብ የሜክሲኮ መደበኛ ሰዓት አቆጣጠር", "OESZ": "የምስራቃዊ አውሮፓ ክረምት ሰዓት", "WESZ": "የምዕራባዊ አውሮፓ ክረምት ሰዓት", "CHADT": "የቻታም የቀን ብርሃን ሰዓት", "AEDT": "የአውስትራሊያ ምዕራባዊ የቀን ሰዓት አቆጣጠር", "EST": "የምዕራባዊ መደበኛ የሰዓት አቆጣጠር", "HNPMX": "የሜክሲኮ ፓሲፊክ መደበኛ ሰዓት አቆጣጠር", "SRT": "የሱሪናም ሰዓት", "COT": "የኮሎምቢያ መደበኛ ሰዓት", "HEPMX": "የሜክሲኮ ፓሲፊክ የቀን ሰዓት አቆጣጠር", "MDT": "MDT", "HNT": "የኒውፋውንድላንድ መደበኛ የሰዓት አቆጣጠር", "ECT": "የኢኳዶር ሰዓት", "ACDT": "የአውስትራሊያ መካከለኛ የቀን ሰዓት አቆጣጠር", "HAT": "የኒውፋውንድላንድ የቀን የሰዓት አቆጣጠር", "ACWDT": "የአውስትራሊያ መካከለኛው ምስራቅ የቀን ሰዓት አቆጣጠር", "NZST": "የኒው ዚላንድ መደበኛ ሰዓት", "NZDT": "የኒው ዚላንድ የቀን ብርሃን ሰዓት", "WARST": "የአርጀንቲና ምስራቃዊ በጋ ሰዓት አቆጣጠር", "CLT": "የቺሊ መደበኛ ሰዓት", "WAT": "የምዕራብ አፍሪካ መደበኛ ሰዓት", "COST": "የኮሎምቢያ ክረምት ሰዓት", "HEPM": "ቅዱስ የፒዬር እና ሚኴሎን የቀን ብርሃን ሰዓት", "CST": "የመካከለኛ መደበኛ ሰዓት አቆጣጠር", "UYT": "የኡራጓይ መደበኛ ሰዓት", "JDT": "የጃፓን የቀን ብርሃን ሰዓት", "LHST": "የሎርድ ሆዌ መደበኛ የሰዓት አቆጣጠር", "GMT": "ግሪንዊች ማዕከላዊ ሰዓት", "HEEG": "የምስራቅ ግሪንላንድ ክረምት ሰዓት", "AKDT": "የአላስካ የቀን ሰዓት አቆጣጠር", "BOT": "የቦሊቪያ ሰዓት", "AWDT": "የአውስትራሊያ ምስራቃዊ የቀን ሰዓት አቆጣጠር", "MYT": "የማሌይዢያ ሰዓት", "WITA": "የመካከለኛው ኢንዶኔዢያ ሰዓት", "WAST": "የምዕራብ አፍሪካ ክረምት ሰዓት", "ChST": "የቻሞሮ መደበኛ ሰዓት", "AWST": "የአውስትራሊያ ምስራቃዊ መደበኛ ሰዓት አቆጣጠር", "WIT": "የምስራቃዊ ኢንዶኔዢያ ሰዓት", "CAT": "የመካከለኛው አፍሪካ ሰዓት", "WEZ": "የምዕራባዊ አውሮፓ መደበኛ ሰዓት", "VET": "የቬኔዝዌላ ሰዓት", "CLST": "የቺሊ ክረምት ሰዓት", "AKST": "የአላስካ መደበኛ የሰዓት አቆጣጠር", "PDT": "የፓስፊክ የቀን ሰዓት አቆጣጠር", "CHAST": "የቻታም መደበኛ ሰዓት", "HEOG": "የምዕራብ ግሪንላንድ ክረምት ሰዓት", "AST": "የአትላንቲክ መደበኛ የሰዓት አቆጣጠር", "EAT": "የምስራቅ አፍሪካ ሰዓት", "WART": "የምዕራባዊ አርጀንቲና መደበኛ ሰዓት አቆጣጠር", "LHDT": "የሎርድ ሆዌ የቀን ሰዓት አቆጣጠር", "ART": "የአርጀንቲና መደበኛ ሰዓት አቆጣጠር", "HNCU": "የኩባ መደበኛ ሰዓት", "HNPM": "ቅዱስ የፒዬር እና ሚኴሎን መደበኛ ሰዓት", "PST": "የፓስፊክ መደበኛ ሰዓት አቆጣጠር", "BT": "የቡታን ሰዓት", "CDT": "የመካከለኛ የቀን ሰዓት አቆጣጠር", "HNOG": "የምዕራብ ግሪንላንድ መደበኛ ሰዓት", "ACST": "የአውስትራሊያ መካከለኛ መደበኛ የሰዓት አቆጣጠር"},
78 // Locale returns the current translators string locale
79 func (am *am) Locale() string {
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'am'
84 func (am *am) PluralsCardinal() []locales.PluralRule {
85 return am.pluralsCardinal
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'am'
89 func (am *am) PluralsOrdinal() []locales.PluralRule {
90 return am.pluralsOrdinal
93 // PluralsRange returns the list of range plural rules associated with 'am'
94 func (am *am) PluralsRange() []locales.PluralRule {
95 return am.pluralsRange
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'am'
99 func (am *am) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
104 if (i == 0) || (n == 1) {
105 return locales.PluralRuleOne
108 return locales.PluralRuleOther
111 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'am'
112 func (am *am) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
113 return locales.PluralRuleOther
116 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'am'
117 func (am *am) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
119 start := am.CardinalPluralRule(num1, v1)
120 end := am.CardinalPluralRule(num2, v2)
122 if start == locales.PluralRuleOne && end == locales.PluralRuleOne {
123 return locales.PluralRuleOne
124 } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
125 return locales.PluralRuleOther
128 return locales.PluralRuleOther
132 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
133 func (am *am) MonthAbbreviated(month time.Month) string {
134 return am.monthsAbbreviated[month]
137 // MonthsAbbreviated returns the locales abbreviated months
138 func (am *am) MonthsAbbreviated() []string {
139 return am.monthsAbbreviated[1:]
142 // MonthNarrow returns the locales narrow month given the 'month' provided
143 func (am *am) MonthNarrow(month time.Month) string {
144 return am.monthsNarrow[month]
147 // MonthsNarrow returns the locales narrow months
148 func (am *am) MonthsNarrow() []string {
149 return am.monthsNarrow[1:]
152 // MonthWide returns the locales wide month given the 'month' provided
153 func (am *am) MonthWide(month time.Month) string {
154 return am.monthsWide[month]
157 // MonthsWide returns the locales wide months
158 func (am *am) MonthsWide() []string {
159 return am.monthsWide[1:]
162 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
163 func (am *am) WeekdayAbbreviated(weekday time.Weekday) string {
164 return am.daysAbbreviated[weekday]
167 // WeekdaysAbbreviated returns the locales abbreviated weekdays
168 func (am *am) WeekdaysAbbreviated() []string {
169 return am.daysAbbreviated
172 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
173 func (am *am) WeekdayNarrow(weekday time.Weekday) string {
174 return am.daysNarrow[weekday]
177 // WeekdaysNarrow returns the locales narrow weekdays
178 func (am *am) WeekdaysNarrow() []string {
182 // WeekdayShort returns the locales short weekday given the 'weekday' provided
183 func (am *am) WeekdayShort(weekday time.Weekday) string {
184 return am.daysShort[weekday]
187 // WeekdaysShort returns the locales short weekdays
188 func (am *am) WeekdaysShort() []string {
192 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
193 func (am *am) WeekdayWide(weekday time.Weekday) string {
194 return am.daysWide[weekday]
197 // WeekdaysWide returns the locales wide weekdays
198 func (am *am) WeekdaysWide() []string {
202 // Decimal returns the decimal point of number
203 func (am *am) Decimal() string {
207 // Group returns the group of number
208 func (am *am) Group() string {
212 // Group returns the minus sign of number
213 func (am *am) Minus() string {
217 // FmtNumber returns 'num' with digits/precision of 'v' for 'am' and handles both Whole and Real numbers based on 'v'
218 func (am *am) FmtNumber(num float64, v uint64) string {
220 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
221 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
224 b := make([]byte, 0, l)
226 for i := len(s) - 1; i >= 0; i-- {
229 b = append(b, am.decimal[0])
236 b = append(b, am.group[0])
247 b = append(b, am.minus[0])
251 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
252 b[i], b[j] = b[j], b[i]
258 // FmtPercent returns 'num' with digits/precision of 'v' for 'am' and handles both Whole and Real numbers based on 'v'
259 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
260 func (am *am) FmtPercent(num float64, v uint64) string {
261 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
263 b := make([]byte, 0, l)
265 for i := len(s) - 1; i >= 0; i-- {
268 b = append(b, am.decimal[0])
276 b = append(b, am.minus[0])
280 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
281 b[i], b[j] = b[j], b[i]
284 b = append(b, am.percent...)
289 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'am'
290 func (am *am) FmtCurrency(num float64, v uint64, currency currency.Type) string {
292 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
293 symbol := am.currencies[currency]
294 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
297 b := make([]byte, 0, l)
299 for i := len(s) - 1; i >= 0; i-- {
302 b = append(b, am.decimal[0])
309 b = append(b, am.group[0])
319 for j := len(symbol) - 1; j >= 0; j-- {
320 b = append(b, symbol[j])
324 b = append(b, am.minus[0])
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]
335 b = append(b, am.decimal...)
338 for i := 0; i < 2-int(v); i++ {
346 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'am'
347 // in accounting notation.
348 func (am *am) FmtAccounting(num float64, v uint64, currency currency.Type) string {
350 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
351 symbol := am.currencies[currency]
352 l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
355 b := make([]byte, 0, l)
357 for i := len(s) - 1; i >= 0; i-- {
360 b = append(b, am.decimal[0])
367 b = append(b, am.group[0])
379 for j := len(symbol) - 1; j >= 0; j-- {
380 b = append(b, symbol[j])
383 b = append(b, am.currencyNegativePrefix[0])
387 for j := len(symbol) - 1; j >= 0; j-- {
388 b = append(b, symbol[j])
394 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
395 b[i], b[j] = b[j], b[i]
401 b = append(b, am.decimal...)
404 for i := 0; i < 2-int(v); i++ {
410 b = append(b, am.currencyNegativeSuffix...)
416 // FmtDateShort returns the short date representation of 't' for 'am'
417 func (am *am) FmtDateShort(t time.Time) string {
419 b := make([]byte, 0, 32)
425 b = strconv.AppendInt(b, int64(t.Day()), 10)
426 b = append(b, []byte{0x2f}...)
432 b = strconv.AppendInt(b, int64(t.Month()), 10)
434 b = append(b, []byte{0x2f}...)
437 b = strconv.AppendInt(b, int64(t.Year()), 10)
439 b = strconv.AppendInt(b, int64(-t.Year()), 10)
445 // FmtDateMedium returns the medium date representation of 't' for 'am'
446 func (am *am) FmtDateMedium(t time.Time) string {
448 b := make([]byte, 0, 32)
450 b = strconv.AppendInt(b, int64(t.Day()), 10)
451 b = append(b, []byte{0x20}...)
452 b = append(b, am.monthsAbbreviated[t.Month()]...)
453 b = append(b, []byte{0x20}...)
456 b = strconv.AppendInt(b, int64(t.Year()), 10)
458 b = strconv.AppendInt(b, int64(-t.Year()), 10)
464 // FmtDateLong returns the long date representation of 't' for 'am'
465 func (am *am) FmtDateLong(t time.Time) string {
467 b := make([]byte, 0, 32)
469 b = strconv.AppendInt(b, int64(t.Day()), 10)
470 b = append(b, []byte{0x20}...)
471 b = append(b, am.monthsWide[t.Month()]...)
472 b = append(b, []byte{0x20}...)
475 b = strconv.AppendInt(b, int64(t.Year()), 10)
477 b = strconv.AppendInt(b, int64(-t.Year()), 10)
483 // FmtDateFull returns the full date representation of 't' for 'am'
484 func (am *am) FmtDateFull(t time.Time) string {
486 b := make([]byte, 0, 32)
488 b = append(b, am.daysWide[t.Weekday()]...)
489 b = append(b, []byte{0x20, 0xe1, 0x8d, 0xa3}...)
490 b = strconv.AppendInt(b, int64(t.Day()), 10)
491 b = append(b, []byte{0x20}...)
492 b = append(b, am.monthsWide[t.Month()]...)
493 b = append(b, []byte{0x20}...)
496 b = strconv.AppendInt(b, int64(t.Year()), 10)
498 b = strconv.AppendInt(b, int64(-t.Year()), 10)
504 // FmtTimeShort returns the short time representation of 't' for 'am'
505 func (am *am) FmtTimeShort(t time.Time) string {
507 b := make([]byte, 0, 32)
515 b = strconv.AppendInt(b, int64(h), 10)
516 b = append(b, am.timeSeparator...)
522 b = strconv.AppendInt(b, int64(t.Minute()), 10)
523 b = append(b, []byte{0x20}...)
526 b = append(b, am.periodsAbbreviated[0]...)
528 b = append(b, am.periodsAbbreviated[1]...)
534 // FmtTimeMedium returns the medium time representation of 't' for 'am'
535 func (am *am) FmtTimeMedium(t time.Time) string {
537 b := make([]byte, 0, 32)
545 b = strconv.AppendInt(b, int64(h), 10)
546 b = append(b, am.timeSeparator...)
552 b = strconv.AppendInt(b, int64(t.Minute()), 10)
553 b = append(b, am.timeSeparator...)
559 b = strconv.AppendInt(b, int64(t.Second()), 10)
560 b = append(b, []byte{0x20}...)
563 b = append(b, am.periodsAbbreviated[0]...)
565 b = append(b, am.periodsAbbreviated[1]...)
571 // FmtTimeLong returns the long time representation of 't' for 'am'
572 func (am *am) FmtTimeLong(t time.Time) string {
574 b := make([]byte, 0, 32)
582 b = strconv.AppendInt(b, int64(h), 10)
583 b = append(b, am.timeSeparator...)
589 b = strconv.AppendInt(b, int64(t.Minute()), 10)
590 b = append(b, am.timeSeparator...)
596 b = strconv.AppendInt(b, int64(t.Second()), 10)
597 b = append(b, []byte{0x20}...)
600 b = append(b, am.periodsAbbreviated[0]...)
602 b = append(b, am.periodsAbbreviated[1]...)
605 b = append(b, []byte{0x20}...)
613 // FmtTimeFull returns the full time representation of 't' for 'am'
614 func (am *am) FmtTimeFull(t time.Time) string {
616 b := make([]byte, 0, 32)
624 b = strconv.AppendInt(b, int64(h), 10)
625 b = append(b, am.timeSeparator...)
631 b = strconv.AppendInt(b, int64(t.Minute()), 10)
632 b = append(b, am.timeSeparator...)
638 b = strconv.AppendInt(b, int64(t.Second()), 10)
639 b = append(b, []byte{0x20}...)
642 b = append(b, am.periodsAbbreviated[0]...)
644 b = append(b, am.periodsAbbreviated[1]...)
647 b = append(b, []byte{0x20}...)
651 if btz, ok := am.timezones[tz]; ok {
652 b = append(b, btz...)