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 currencyPositivePrefix string
26 currencyNegativePrefix 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 'hy_AM' locale
45 func New() locales.Translator {
48 pluralsCardinal: []locales.PluralRule{2, 6},
49 pluralsOrdinal: []locales.PluralRule{2, 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", "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 currencyPositivePrefix: " ",
60 currencyNegativePrefix: " ",
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{"AM", "PM"},
71 erasAbbreviated: []string{"", ""},
72 erasNarrow: []string{"", ""},
73 erasWide: []string{"Քրիստոսից առաջ", "Քրիստոսից հետո"},
74 timezones: map[string]string{"VET": "Վենեսուելայի ժամանակ", "COT": "Կոլումբիայի ստանդարտ ժամանակ", "HKT": "Հոնկոնգի ստանդարտ ժամանակ", "WESZ": "Արևմտյան Եվրոպայի ամառային ժամանակ", "SRT": "Սուրինամի ժամանակ", "AEST": "Արևելյան Ավստրալիայի ստանդարտ ժամանակ", "EAT": "Արևելյան Աֆրիկայի ժամանակ", "AKDT": "Ալյասկայի ամառային ժամանակ", "CAT": "Կենտրոնական Աֆրիկայի ժամանակ", "SGT": "Սինգապուրի ժամանակ", "ACWST": "Կենտրոնական Ավստրալիայի արևմտյան ստանդարտ ժամանակ", "JST": "Ճապոնիայի ստանդարտ ժամանակ", "ADT": "Ատլանտյան ամառային ժամանակ", "SAST": "Հարավային Աֆրիկայի ժամանակ", "GFT": "Ֆրանսիական Գվիանայի ժամանակ", "HNPMX": "Մեքսիկայի խաղաղօվկիանոսյան ստանդարտ ժամանակ", "BOT": "Բոլիվիայի ժամանակ", "MST": "MST", "NZST": "Նոր Զելանդիայի ստանդարտ ժամանակ", "HENOMX": "Հյուսիսարևմտյան Մեքսիկայի ամառային ժամանակ", "ARST": "Արգենտինայի ամառային ժամանակ", "ACDT": "Կենտրոնական Ավստրալիայի ամառային ժամանակ", "WEZ": "Արևմտյան Եվրոպայի ստանդարտ ժամանակ", "CHADT": "Չաթեմ կղզու ամառային ժամանակ", "HECU": "Կուբայի ամառային ժամանակ", "MEZ": "Կենտրոնական Եվրոպայի ստանդարտ ժամանակ", "IST": "Հնդկաստանի ստանդարտ ժամանակ", "HNOG": "Արևմտյան Գրենլանդիայի ստանդարտ ժամանակ", "EDT": "Արևելյան Ամերիկայի ամառային ժամանակ", "MDT": "MDT", "WIT": "Արևելյան Ինդոնեզիայի ժամանակ", "ART": "Արգենտինայի ստնադարտ ժամանակ", "COST": "Կոլումբիայի ամառային ժամանակ", "PST": "Խաղաղօվկիանոսյան ստանդարտ ժամանակ", "HNCU": "Կուբայի ստանդարտ ժամանակ", "MESZ": "Կենտրոնական Եվրոպայի ամառային ժամանակ", "WART": "Արևմտյան Արգենտինայի ստնադարտ ժամանակ", "HKST": "Հոնկոնգի ամառային ժամանակ", "PDT": "Խաղաղօվկիանոսյան ամառային ժամանակ", "OESZ": "Արևելյան Եվրոպայի ամառային ժամանակ", "WAST": "Արևմտյան Աֆրիկայի ամառային ժամանակ", "GYT": "Գայանայի ժամանակ", "ACWDT": "Կենտրոնական Ավստրալիայի արևմտյան ամառային ժամանակ", "HNNOMX": "Հյուսիսարևմտյան Մեքսիկայի ստանդարտ ժամանակ", "LHST": "Լորդ Հաուի ստանդարտ ժամանակ", "LHDT": "Լորդ Հաուի ամառային ժամանակ", "CLST": "Չիլիի ամառային ժամանակ", "EST": "Արևելյան Ամերիկայի ստանդարտ ժամանակ", "HNPM": "Սեն Պիեռ և Միքելոնի ստանդարտ ժամանակ", "AWST": "Արևմտյան Ավստրալիայի ստանդարտ ժամանակ", "HADT": "Հավայան-ալեության ամառային ժամանակ", "NZDT": "Նոր Զելանդիայի ամառային ժամանակ", "HAT": "Նյուֆաունդլենդի ամառային ժամանակ", "WIB": "Արևմտյան Ինդոնեզիայի ժամանակ", "ChST": "Չամոռոյի ժամանակ", "MYT": "Մալայզիայի ժամանակ", "WITA": "Կենտրոնական Ինդոնեզիայի ժամանակ", "HEEG": "Արևելյան Գրենլանդիայի ամառային ժամանակ", "ACST": "Կենտրոնական Ավստրալիայի ստանդարտ ժամանակ", "JDT": "Ճապոնիայի ամառային ժամանակ", "AEDT": "Արևելյան Ավստրալիայի ամառային ժամանակ", "∅∅∅": "Պերուի ամառային ժամանակ", "HEPM": "Սեն Պիեռ և Միքելոնի ամառային ժամանակ", "CDT": "Կենտրոնական Ամերիկայի ամառային ժամանակ", "UYST": "Ուրուգվայի ամառային ժամանակ", "TMT": "Թուրքմենստանի ստանդարտ ժամանակ", "WARST": "Արևմտյան Արգենտինայի ամառային ժամանակ", "AKST": "Ալյասկայի ստանդարտ ժամանակ", "HEPMX": "Մեքսիկայի խաղաղօվկիանոսյան ամառային ժամանակ", "CHAST": "Չաթեմ կղզու ստանդարտ ժամանակ", "CST": "Կենտրոնական Ամերիկայի ստանդարտ ժամանակ", "TMST": "Թուրքմենստանի ամառային ժամանակ", "HEOG": "Արևմտյան Գրենլանդիայի ամառային ժամանակ", "AST": "Ատլանտյան ստանդարտ ժամանակ", "GMT": "Գրինվիչի ժամանակ", "AWDT": "Արևմտյան Ավստրալիայի ամառային ժամանակ", "ECT": "Էկվադորի ժամանակ", "BT": "Բութանի ժամանակ", "UYT": "Ուրուգվայի ստանդարտ ժամանակ", "OEZ": "Արևելյան Եվրոպայի ստանդարտ ժամանակ", "WAT": "Արևմտյան Աֆրիկայի ստանդարտ ժամանակ", "HNT": "Նյուֆաունդլենդի ստանդարտ ժամանակ", "CLT": "Չիլիի ստանդարտ ժամանակ", "HAST": "Հավայան-ալեության ստանդարտ ժամանակ", "HNEG": "Արևելյան Գրենլանդիայի ստանդարտ ժամանակ"},
78 // Locale returns the current translators string locale
79 func (hy *hy_AM) Locale() string {
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'hy_AM'
84 func (hy *hy_AM) PluralsCardinal() []locales.PluralRule {
85 return hy.pluralsCardinal
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'hy_AM'
89 func (hy *hy_AM) PluralsOrdinal() []locales.PluralRule {
90 return hy.pluralsOrdinal
93 // PluralsRange returns the list of range plural rules associated with 'hy_AM'
94 func (hy *hy_AM) PluralsRange() []locales.PluralRule {
95 return hy.pluralsRange
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'hy_AM'
99 func (hy *hy_AM) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
104 if i == 0 || i == 1 {
105 return locales.PluralRuleOne
108 return locales.PluralRuleOther
111 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'hy_AM'
112 func (hy *hy_AM) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
117 return locales.PluralRuleOne
120 return locales.PluralRuleOther
123 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'hy_AM'
124 func (hy *hy_AM) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
126 start := hy.CardinalPluralRule(num1, v1)
127 end := hy.CardinalPluralRule(num2, v2)
129 if start == locales.PluralRuleOne && end == locales.PluralRuleOne {
130 return locales.PluralRuleOne
131 } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
132 return locales.PluralRuleOther
135 return locales.PluralRuleOther
139 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
140 func (hy *hy_AM) MonthAbbreviated(month time.Month) string {
141 return hy.monthsAbbreviated[month]
144 // MonthsAbbreviated returns the locales abbreviated months
145 func (hy *hy_AM) MonthsAbbreviated() []string {
146 return hy.monthsAbbreviated[1:]
149 // MonthNarrow returns the locales narrow month given the 'month' provided
150 func (hy *hy_AM) MonthNarrow(month time.Month) string {
151 return hy.monthsNarrow[month]
154 // MonthsNarrow returns the locales narrow months
155 func (hy *hy_AM) MonthsNarrow() []string {
156 return hy.monthsNarrow[1:]
159 // MonthWide returns the locales wide month given the 'month' provided
160 func (hy *hy_AM) MonthWide(month time.Month) string {
161 return hy.monthsWide[month]
164 // MonthsWide returns the locales wide months
165 func (hy *hy_AM) MonthsWide() []string {
166 return hy.monthsWide[1:]
169 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
170 func (hy *hy_AM) WeekdayAbbreviated(weekday time.Weekday) string {
171 return hy.daysAbbreviated[weekday]
174 // WeekdaysAbbreviated returns the locales abbreviated weekdays
175 func (hy *hy_AM) WeekdaysAbbreviated() []string {
176 return hy.daysAbbreviated
179 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
180 func (hy *hy_AM) WeekdayNarrow(weekday time.Weekday) string {
181 return hy.daysNarrow[weekday]
184 // WeekdaysNarrow returns the locales narrow weekdays
185 func (hy *hy_AM) WeekdaysNarrow() []string {
189 // WeekdayShort returns the locales short weekday given the 'weekday' provided
190 func (hy *hy_AM) WeekdayShort(weekday time.Weekday) string {
191 return hy.daysShort[weekday]
194 // WeekdaysShort returns the locales short weekdays
195 func (hy *hy_AM) WeekdaysShort() []string {
199 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
200 func (hy *hy_AM) WeekdayWide(weekday time.Weekday) string {
201 return hy.daysWide[weekday]
204 // WeekdaysWide returns the locales wide weekdays
205 func (hy *hy_AM) WeekdaysWide() []string {
209 // Decimal returns the decimal point of number
210 func (hy *hy_AM) Decimal() string {
214 // Group returns the group of number
215 func (hy *hy_AM) Group() string {
219 // Group returns the minus sign of number
220 func (hy *hy_AM) Minus() string {
224 // FmtNumber returns 'num' with digits/precision of 'v' for 'hy_AM' and handles both Whole and Real numbers based on 'v'
225 func (hy *hy_AM) FmtNumber(num float64, v uint64) string {
227 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
228 l := len(s) + 2 + 2*len(s[:len(s)-int(v)-1])/3
231 b := make([]byte, 0, l)
233 for i := len(s) - 1; i >= 0; i-- {
236 b = append(b, hy.decimal[0])
243 for j := len(hy.group) - 1; j >= 0; j-- {
244 b = append(b, hy.group[j])
256 b = append(b, hy.minus[0])
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]
267 // FmtPercent returns 'num' with digits/precision of 'v' for 'hy_AM' and handles both Whole and Real numbers based on 'v'
268 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
269 func (hy *hy_AM) FmtPercent(num float64, v uint64) string {
270 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
272 b := make([]byte, 0, l)
274 for i := len(s) - 1; i >= 0; i-- {
277 b = append(b, hy.decimal[0])
285 b = append(b, hy.minus[0])
289 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
290 b[i], b[j] = b[j], b[i]
293 b = append(b, hy.percent...)
298 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'hy_AM'
299 func (hy *hy_AM) FmtCurrency(num float64, v uint64, currency currency.Type) string {
301 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
302 symbol := hy.currencies[currency]
303 l := len(s) + len(symbol) + 4 + 2*len(s[:len(s)-int(v)-1])/3
306 b := make([]byte, 0, l)
308 for i := len(s) - 1; i >= 0; i-- {
311 b = append(b, hy.decimal[0])
318 for j := len(hy.group) - 1; j >= 0; j-- {
319 b = append(b, hy.group[j])
330 for j := len(symbol) - 1; j >= 0; j-- {
331 b = append(b, symbol[j])
334 for j := len(hy.currencyPositivePrefix) - 1; j >= 0; j-- {
335 b = append(b, hy.currencyPositivePrefix[j])
339 b = append(b, hy.minus[0])
343 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
344 b[i], b[j] = b[j], b[i]
350 b = append(b, hy.decimal...)
353 for i := 0; i < 2-int(v); i++ {
361 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'hy_AM'
362 // in accounting notation.
363 func (hy *hy_AM) FmtAccounting(num float64, v uint64, currency currency.Type) string {
365 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
366 symbol := hy.currencies[currency]
367 l := len(s) + len(symbol) + 4 + 2*len(s[:len(s)-int(v)-1])/3
370 b := make([]byte, 0, l)
372 for i := len(s) - 1; i >= 0; i-- {
375 b = append(b, hy.decimal[0])
382 for j := len(hy.group) - 1; j >= 0; j-- {
383 b = append(b, hy.group[j])
396 for j := len(symbol) - 1; j >= 0; j-- {
397 b = append(b, symbol[j])
400 for j := len(hy.currencyNegativePrefix) - 1; j >= 0; j-- {
401 b = append(b, hy.currencyNegativePrefix[j])
404 b = append(b, hy.minus[0])
408 for j := len(symbol) - 1; j >= 0; j-- {
409 b = append(b, symbol[j])
412 for j := len(hy.currencyPositivePrefix) - 1; j >= 0; j-- {
413 b = append(b, hy.currencyPositivePrefix[j])
419 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
420 b[i], b[j] = b[j], b[i]
426 b = append(b, hy.decimal...)
429 for i := 0; i < 2-int(v); i++ {
437 // FmtDateShort returns the short date representation of 't' for 'hy_AM'
438 func (hy *hy_AM) FmtDateShort(t time.Time) string {
440 b := make([]byte, 0, 32)
446 b = strconv.AppendInt(b, int64(t.Day()), 10)
447 b = append(b, []byte{0x2e}...)
453 b = strconv.AppendInt(b, int64(t.Month()), 10)
455 b = append(b, []byte{0x2e}...)
458 b = append(b, strconv.Itoa(t.Year())[2:]...)
460 b = append(b, strconv.Itoa(t.Year())[1:]...)
466 // FmtDateMedium returns the medium date representation of 't' for 'hy_AM'
467 func (hy *hy_AM) FmtDateMedium(t time.Time) string {
469 b := make([]byte, 0, 32)
475 b = strconv.AppendInt(b, int64(t.Day()), 10)
476 b = append(b, []byte{0x20}...)
477 b = append(b, hy.monthsAbbreviated[t.Month()]...)
478 b = append(b, []byte{0x2c, 0x20}...)
481 b = strconv.AppendInt(b, int64(t.Year()), 10)
483 b = strconv.AppendInt(b, int64(-t.Year()), 10)
486 b = append(b, []byte{0x20, 0xd5, 0xa9, 0x2e}...)
491 // FmtDateLong returns the long date representation of 't' for 'hy_AM'
492 func (hy *hy_AM) FmtDateLong(t time.Time) string {
494 b := make([]byte, 0, 32)
500 b = strconv.AppendInt(b, int64(t.Day()), 10)
501 b = append(b, []byte{0x20}...)
502 b = append(b, hy.monthsWide[t.Month()]...)
503 b = append(b, []byte{0x2c, 0x20}...)
506 b = strconv.AppendInt(b, int64(t.Year()), 10)
508 b = strconv.AppendInt(b, int64(-t.Year()), 10)
511 b = append(b, []byte{0x20, 0xd5, 0xa9, 0x2e}...)
516 // FmtDateFull returns the full date representation of 't' for 'hy_AM'
517 func (hy *hy_AM) FmtDateFull(t time.Time) string {
519 b := make([]byte, 0, 32)
522 b = strconv.AppendInt(b, int64(t.Year()), 10)
524 b = strconv.AppendInt(b, int64(-t.Year()), 10)
527 b = append(b, []byte{0x20, 0xd5, 0xa9, 0x2e, 0x20}...)
528 b = append(b, hy.monthsWide[t.Month()]...)
529 b = append(b, []byte{0x20}...)
530 b = strconv.AppendInt(b, int64(t.Day()), 10)
531 b = append(b, []byte{0x2c, 0x20}...)
532 b = append(b, hy.daysWide[t.Weekday()]...)
537 // FmtTimeShort returns the short time representation of 't' for 'hy_AM'
538 func (hy *hy_AM) FmtTimeShort(t time.Time) string {
540 b := make([]byte, 0, 32)
546 b = strconv.AppendInt(b, int64(t.Hour()), 10)
547 b = append(b, hy.timeSeparator...)
553 b = strconv.AppendInt(b, int64(t.Minute()), 10)
558 // FmtTimeMedium returns the medium time representation of 't' for 'hy_AM'
559 func (hy *hy_AM) FmtTimeMedium(t time.Time) string {
561 b := make([]byte, 0, 32)
567 b = strconv.AppendInt(b, int64(t.Hour()), 10)
568 b = append(b, hy.timeSeparator...)
574 b = strconv.AppendInt(b, int64(t.Minute()), 10)
575 b = append(b, hy.timeSeparator...)
581 b = strconv.AppendInt(b, int64(t.Second()), 10)
586 // FmtTimeLong returns the long time representation of 't' for 'hy_AM'
587 func (hy *hy_AM) FmtTimeLong(t time.Time) string {
589 b := make([]byte, 0, 32)
595 b = strconv.AppendInt(b, int64(t.Hour()), 10)
596 b = append(b, hy.timeSeparator...)
602 b = strconv.AppendInt(b, int64(t.Minute()), 10)
603 b = append(b, hy.timeSeparator...)
609 b = strconv.AppendInt(b, int64(t.Second()), 10)
610 b = append(b, []byte{0x20}...)
618 // FmtTimeFull returns the full time representation of 't' for 'hy_AM'
619 func (hy *hy_AM) FmtTimeFull(t time.Time) string {
621 b := make([]byte, 0, 32)
627 b = strconv.AppendInt(b, int64(t.Hour()), 10)
628 b = append(b, hy.timeSeparator...)
634 b = strconv.AppendInt(b, int64(t.Minute()), 10)
635 b = append(b, hy.timeSeparator...)
641 b = strconv.AppendInt(b, int64(t.Second()), 10)
642 b = append(b, []byte{0x20}...)
646 if btz, ok := hy.timezones[tz]; ok {
647 b = append(b, btz...)