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 monthsAbbreviated []string
28 daysAbbreviated []string
32 periodsAbbreviated []string
33 periodsNarrow []string
36 erasAbbreviated []string
39 timezones map[string]string
42 // New returns a new instance of translator for the 'gu_IN' locale
43 func New() locales.Translator {
46 pluralsCardinal: []locales.PluralRule{2, 6},
47 pluralsOrdinal: []locales.PluralRule{2, 3, 4, 5, 6},
48 pluralsRange: []locales.PluralRule{2, 6},
56 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"},
57 monthsAbbreviated: []string{"", "જાન્યુ", "ફેબ્રુ", "માર્ચ", "એપ્રિલ", "મે", "જૂન", "જુલાઈ", "ઑગસ્ટ", "સપ્ટે", "ઑક્ટો", "નવે", "ડિસે"},
58 monthsNarrow: []string{"", "જા", "ફે", "મા", "એ", "મે", "જૂ", "જુ", "ઑ", "સ", "ઑ", "ન", "ડિ"},
59 monthsWide: []string{"", "જાન્યુઆરી", "ફેબ્રુઆરી", "માર્ચ", "એપ્રિલ", "મે", "જૂન", "જુલાઈ", "ઑગસ્ટ", "સપ્ટેમ્બર", "ઑક્ટોબર", "નવેમ્બર", "ડિસેમ્બર"},
60 daysAbbreviated: []string{"રવિ", "સોમ", "મંગળ", "બુધ", "ગુરુ", "શુક્ર", "શનિ"},
61 daysNarrow: []string{"ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"},
62 daysShort: []string{"ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"},
63 daysWide: []string{"રવિવાર", "સોમવાર", "મંગળવાર", "બુધવાર", "ગુરુવાર", "શુક્રવાર", "શનિવાર"},
64 periodsAbbreviated: []string{"AM", "PM"},
65 periodsNarrow: []string{"AM", "PM"},
66 periodsWide: []string{"AM", "PM"},
67 erasAbbreviated: []string{"ઈ.સ.પૂર્વે", "ઈ.સ."},
68 erasNarrow: []string{"ઇ સ પુ", "ઇસ"},
69 erasWide: []string{"ઈસવીસન પૂર્વે", "ઇસવીસન"},
70 timezones: map[string]string{"ECT": "એક્વાડોર સમય", "PDT": "ઉત્તર અમેરિકન પેસિફિક દિવસ સમય", "AWDT": "ઓસ્ટ્રેલિયન પશ્ચિમી દિવસ સમય", "MEZ": "મધ્ય યુરોપિયન માનક સમય", "HEOG": "પશ્ચિમ ગ્રીનલેન્ડ ગ્રીષ્મ સમય", "ADT": "અટલાન્ટિક દિવસ સમય", "AKDT": "અલાસ્કા દિવસ સમય", "VET": "વેનેઝુએલા સમય", "LHDT": "લોર્ડ હોવ દિવસ સમય", "WAT": "પશ્ચિમ આફ્રિકા માનક સમય", "COT": "કોલંબિયા માનક સમય", "HNNOMX": "ઉત્તરપશ્ચિમ મેક્સિકો માનક સમય", "HENOMX": "ઉત્તરપશ્ચિમ મેક્સિકો દિવસ સમય", "AST": "અટલાન્ટિક પ્રમાણભૂત સમય", "WIT": "પૂર્વીય ઇન્ડોનેશિયા સમય", "HEEG": "પૂર્વ ગ્રીનલેન્ડ ગ્રીષ્મ સમય", "WIB": "પશ્ચિમી ઇન્ડોનેશિયા સમય", "PST": "ઉત્તર અમેરિકન પેસિફિક પ્રમાણભૂત સમય", "MESZ": "મધ્ય યુરોપિયન ગ્રીષ્મ સમય", "HNOG": "પશ્ચિમ ગ્રીનલેન્ડ માનક સમય", "HNEG": "પૂર્વ ગ્રીનલેન્ડ માનક સમય", "ACDT": "ઓસ્ટ્રેલિયન મધ્ય દિવસ સમય", "WARST": "પશ્ચિમી અર્જેન્ટીના ગ્રીષ્મ સમય", "OESZ": "પૂર્વી યુરોપીયન ગ્રીષ્મ સમય", "LHST": "લોર્ડ હોવ પ્રમાણભૂત સમય", "IST": "ભારતીય માનક સમય", "COST": "કોલંબિયા ગ્રીષ્મ સમય", "HKST": "હોંગ કોંગ ગ્રીષ્મ સમય", "UYT": "ઉરૂગ્વે માનક સમય", "WART": "પશ્ચિમી અર્જેન્ટીના માનક સમય", "SAST": "દક્ષિણ આફ્રિકા માનક સમય", "CLT": "ચિલી માનક સમય", "MST": "મકાઉ પ્રમાણભૂત સમય", "EAT": "પૂર્વ આફ્રિકા સમય", "ACST": "ઓસ્ટ્રેલિયન મધ્ય પ્રમાણભૂત સમય", "EDT": "ઉત્તર અમેરિકન પૂર્વી દિવસ સમય", "CAT": "મધ્ય આફ્રિકા સમય", "ACWST": "ઓસ્ટ્રેલિયન મધ્ય પશ્ચિમી પ્રમાણભૂત સમય", "NZDT": "ન્યુઝીલેન્ડ દિવસ સમય", "TMST": "તુર્કમેનિસ્તાન ગ્રીષ્મ સમય", "JST": "જાપાન માનક સમય", "ARST": "આર્જેન્ટીના ગ્રીષ્મ સમય", "CLST": "ચિલી ગ્રીષ્મ સમય", "CHADT": "ચેતહામ દિવસ સમય", "NZST": "ન્યુઝીલેન્ડ માનક સમય", "TMT": "તુર્કમેનિસ્તાન માનક સમય", "AEDT": "ઓસ્ટ્રેલિયન પૂર્વીય દિવસ સમય", "AKST": "અલાસ્કા પ્રમાણભૂત સમય", "HNCU": "ક્યૂબા માનક સમય", "CHAST": "ચેતહામ માનક સમય", "BT": "ભૂટાન સમય", "HADT": "હવાઇ-એલ્યુશિઅન દિવસ સમય", "WAST": "પશ્ચિમ આફ્રિકા ગ્રીષ્મ સમય", "WESZ": "પશ્ચિમી યુરોપિયન ગ્રીષ્મ સમય", "AWST": "ઓસ્ટ્રેલિયન પશ્ચિમી પ્રમાણભૂત સમય", "CDT": "ઉત્તર અમેરિકન મધ્ય દિવસ સમય", "SGT": "સિંગાપુર માનક સમય", "HNPM": "સેંટ પીએરે એન્ડ મિકીલોન માનક સમય", "HECU": "ક્યૂબા દિવસ સમય", "AEST": "ઓસ્ટ્રેલિયન પૂર્વીય પ્રમાણભૂત સમય", "HKT": "હોંગ કોંગ માનક સમય", "SRT": "સૂરીનામ સમય", "CST": "ઉત્તર અમેરિકન કેન્દ્રિય પ્રમાણભૂત સમય", "OEZ": "પૂર્વી યુરોપિયન માનક સમય", "HNT": "ન્યૂફાઉન્ડલેન્ડ પ્રમાણભૂત સમય", "EST": "ઉત્તર અમેરિકન પૂર્વી પ્રમાણભૂત સમય", "HAST": "હવાઇ-એલ્યુશિઅન માનક સમય", "GFT": "ફ્રેન્ચ ગયાના સમય", "GYT": "ગયાના સમય", "HEPM": "સેંટ પીએરે એન્ડ મિકીલોન દિવસ સમય", "BOT": "બોલિવિયા સમય", "MDT": "મકાઉ ગ્રીષ્મ સમય", "MYT": "મલેશિયા સમય", "JDT": "જાપાન દિવસ સમય", "HAT": "ન્યૂફાઉન્ડલેન્ડ દિવસ સમય", "∅∅∅": "એમેઝોન ગ્રીષ્મ સમય", "HNPMX": "મેક્સીકન પેસિફિક માનક સમય", "HEPMX": "મેક્સીકન પેસિફિક દિવસ સમય", "GMT": "ગ્રીનવિચ મધ્યમ સમય", "ChST": "કેમોરો માનક સમય", "UYST": "ઉરૂગ્વે ગ્રીષ્મ સમય", "ACWDT": "ઓસ્ટ્રેલિયન મધ્ય પશ્ચિમી દિવસ સમય", "ART": "અર્જેન્ટીના માનક સમય", "WEZ": "પશ્ચિમી યુરોપિયન માનક સમય", "WITA": "મધ્ય ઇન્ડોનેશિયા સમય"},
74 // Locale returns the current translators string locale
75 func (gu *gu_IN) Locale() string {
79 // PluralsCardinal returns the list of cardinal plural rules associated with 'gu_IN'
80 func (gu *gu_IN) PluralsCardinal() []locales.PluralRule {
81 return gu.pluralsCardinal
84 // PluralsOrdinal returns the list of ordinal plural rules associated with 'gu_IN'
85 func (gu *gu_IN) PluralsOrdinal() []locales.PluralRule {
86 return gu.pluralsOrdinal
89 // PluralsRange returns the list of range plural rules associated with 'gu_IN'
90 func (gu *gu_IN) PluralsRange() []locales.PluralRule {
91 return gu.pluralsRange
94 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'gu_IN'
95 func (gu *gu_IN) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
100 if (i == 0) || (n == 1) {
101 return locales.PluralRuleOne
104 return locales.PluralRuleOther
107 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'gu_IN'
108 func (gu *gu_IN) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
113 return locales.PluralRuleOne
114 } else if n == 2 || n == 3 {
115 return locales.PluralRuleTwo
117 return locales.PluralRuleFew
119 return locales.PluralRuleMany
122 return locales.PluralRuleOther
125 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'gu_IN'
126 func (gu *gu_IN) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
128 start := gu.CardinalPluralRule(num1, v1)
129 end := gu.CardinalPluralRule(num2, v2)
131 if start == locales.PluralRuleOne && end == locales.PluralRuleOne {
132 return locales.PluralRuleOne
133 } else if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
134 return locales.PluralRuleOther
137 return locales.PluralRuleOther
141 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
142 func (gu *gu_IN) MonthAbbreviated(month time.Month) string {
143 return gu.monthsAbbreviated[month]
146 // MonthsAbbreviated returns the locales abbreviated months
147 func (gu *gu_IN) MonthsAbbreviated() []string {
148 return gu.monthsAbbreviated[1:]
151 // MonthNarrow returns the locales narrow month given the 'month' provided
152 func (gu *gu_IN) MonthNarrow(month time.Month) string {
153 return gu.monthsNarrow[month]
156 // MonthsNarrow returns the locales narrow months
157 func (gu *gu_IN) MonthsNarrow() []string {
158 return gu.monthsNarrow[1:]
161 // MonthWide returns the locales wide month given the 'month' provided
162 func (gu *gu_IN) MonthWide(month time.Month) string {
163 return gu.monthsWide[month]
166 // MonthsWide returns the locales wide months
167 func (gu *gu_IN) MonthsWide() []string {
168 return gu.monthsWide[1:]
171 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
172 func (gu *gu_IN) WeekdayAbbreviated(weekday time.Weekday) string {
173 return gu.daysAbbreviated[weekday]
176 // WeekdaysAbbreviated returns the locales abbreviated weekdays
177 func (gu *gu_IN) WeekdaysAbbreviated() []string {
178 return gu.daysAbbreviated
181 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
182 func (gu *gu_IN) WeekdayNarrow(weekday time.Weekday) string {
183 return gu.daysNarrow[weekday]
186 // WeekdaysNarrow returns the locales narrow weekdays
187 func (gu *gu_IN) WeekdaysNarrow() []string {
191 // WeekdayShort returns the locales short weekday given the 'weekday' provided
192 func (gu *gu_IN) WeekdayShort(weekday time.Weekday) string {
193 return gu.daysShort[weekday]
196 // WeekdaysShort returns the locales short weekdays
197 func (gu *gu_IN) WeekdaysShort() []string {
201 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
202 func (gu *gu_IN) WeekdayWide(weekday time.Weekday) string {
203 return gu.daysWide[weekday]
206 // WeekdaysWide returns the locales wide weekdays
207 func (gu *gu_IN) WeekdaysWide() []string {
211 // Decimal returns the decimal point of number
212 func (gu *gu_IN) Decimal() string {
216 // Group returns the group of number
217 func (gu *gu_IN) Group() string {
221 // Group returns the minus sign of number
222 func (gu *gu_IN) Minus() string {
226 // FmtNumber returns 'num' with digits/precision of 'v' for 'gu_IN' and handles both Whole and Real numbers based on 'v'
227 func (gu *gu_IN) FmtNumber(num float64, v uint64) string {
229 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
230 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
236 b := make([]byte, 0, l)
238 for i := len(s) - 1; i >= 0; i-- {
241 b = append(b, gu.decimal[0])
248 if count == groupThreshold {
249 b = append(b, gu.group[0])
265 b = append(b, gu.minus[0])
269 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
270 b[i], b[j] = b[j], b[i]
276 // FmtPercent returns 'num' with digits/precision of 'v' for 'gu_IN' and handles both Whole and Real numbers based on 'v'
277 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
278 func (gu *gu_IN) FmtPercent(num float64, v uint64) string {
279 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
281 b := make([]byte, 0, l)
283 for i := len(s) - 1; i >= 0; i-- {
286 b = append(b, gu.decimal[0])
294 b = append(b, gu.minus[0])
298 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
299 b[i], b[j] = b[j], b[i]
302 b = append(b, gu.percent...)
307 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'gu_IN'
308 func (gu *gu_IN) FmtCurrency(num float64, v uint64, currency currency.Type) string {
310 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
311 symbol := gu.currencies[currency]
312 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
315 b := make([]byte, 0, l)
317 for i := len(s) - 1; i >= 0; i-- {
320 b = append(b, gu.decimal[0])
327 b = append(b, gu.group[0])
337 for j := len(symbol) - 1; j >= 0; j-- {
338 b = append(b, symbol[j])
342 b = append(b, gu.minus[0])
346 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
347 b[i], b[j] = b[j], b[i]
353 b = append(b, gu.decimal...)
356 for i := 0; i < 2-int(v); i++ {
364 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'gu_IN'
365 // in accounting notation.
366 func (gu *gu_IN) FmtAccounting(num float64, v uint64, currency currency.Type) string {
368 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
369 symbol := gu.currencies[currency]
370 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
373 b := make([]byte, 0, l)
375 for i := len(s) - 1; i >= 0; i-- {
378 b = append(b, gu.decimal[0])
385 b = append(b, gu.group[0])
397 for j := len(symbol) - 1; j >= 0; j-- {
398 b = append(b, symbol[j])
401 b = append(b, gu.minus[0])
405 for j := len(symbol) - 1; j >= 0; j-- {
406 b = append(b, symbol[j])
412 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
413 b[i], b[j] = b[j], b[i]
419 b = append(b, gu.decimal...)
422 for i := 0; i < 2-int(v); i++ {
430 // FmtDateShort returns the short date representation of 't' for 'gu_IN'
431 func (gu *gu_IN) FmtDateShort(t time.Time) string {
433 b := make([]byte, 0, 32)
435 b = strconv.AppendInt(b, int64(t.Day()), 10)
436 b = append(b, []byte{0x2f}...)
437 b = strconv.AppendInt(b, int64(t.Month()), 10)
438 b = append(b, []byte{0x2f}...)
441 b = append(b, strconv.Itoa(t.Year())[2:]...)
443 b = append(b, strconv.Itoa(t.Year())[1:]...)
449 // FmtDateMedium returns the medium date representation of 't' for 'gu_IN'
450 func (gu *gu_IN) FmtDateMedium(t time.Time) string {
452 b := make([]byte, 0, 32)
454 b = strconv.AppendInt(b, int64(t.Day()), 10)
455 b = append(b, []byte{0x20}...)
456 b = append(b, gu.monthsAbbreviated[t.Month()]...)
457 b = append(b, []byte{0x2c, 0x20}...)
460 b = strconv.AppendInt(b, int64(t.Year()), 10)
462 b = strconv.AppendInt(b, int64(-t.Year()), 10)
468 // FmtDateLong returns the long date representation of 't' for 'gu_IN'
469 func (gu *gu_IN) FmtDateLong(t time.Time) string {
471 b := make([]byte, 0, 32)
473 b = strconv.AppendInt(b, int64(t.Day()), 10)
474 b = append(b, []byte{0x20}...)
475 b = append(b, gu.monthsWide[t.Month()]...)
476 b = append(b, []byte{0x2c, 0x20}...)
479 b = strconv.AppendInt(b, int64(t.Year()), 10)
481 b = strconv.AppendInt(b, int64(-t.Year()), 10)
487 // FmtDateFull returns the full date representation of 't' for 'gu_IN'
488 func (gu *gu_IN) FmtDateFull(t time.Time) string {
490 b := make([]byte, 0, 32)
492 b = append(b, gu.daysWide[t.Weekday()]...)
493 b = append(b, []byte{0x2c, 0x20}...)
494 b = strconv.AppendInt(b, int64(t.Day()), 10)
495 b = append(b, []byte{0x20}...)
496 b = append(b, gu.monthsWide[t.Month()]...)
497 b = append(b, []byte{0x2c, 0x20}...)
500 b = strconv.AppendInt(b, int64(t.Year()), 10)
502 b = strconv.AppendInt(b, int64(-t.Year()), 10)
508 // FmtTimeShort returns the short time representation of 't' for 'gu_IN'
509 func (gu *gu_IN) FmtTimeShort(t time.Time) string {
511 b := make([]byte, 0, 32)
523 b = strconv.AppendInt(b, int64(h), 10)
524 b = append(b, gu.timeSeparator...)
530 b = strconv.AppendInt(b, int64(t.Minute()), 10)
531 b = append(b, []byte{0x20}...)
534 b = append(b, gu.periodsAbbreviated[0]...)
536 b = append(b, gu.periodsAbbreviated[1]...)
542 // FmtTimeMedium returns the medium time representation of 't' for 'gu_IN'
543 func (gu *gu_IN) FmtTimeMedium(t time.Time) string {
545 b := make([]byte, 0, 32)
557 b = strconv.AppendInt(b, int64(h), 10)
558 b = append(b, gu.timeSeparator...)
564 b = strconv.AppendInt(b, int64(t.Minute()), 10)
565 b = append(b, gu.timeSeparator...)
571 b = strconv.AppendInt(b, int64(t.Second()), 10)
572 b = append(b, []byte{0x20}...)
575 b = append(b, gu.periodsAbbreviated[0]...)
577 b = append(b, gu.periodsAbbreviated[1]...)
583 // FmtTimeLong returns the long time representation of 't' for 'gu_IN'
584 func (gu *gu_IN) FmtTimeLong(t time.Time) string {
586 b := make([]byte, 0, 32)
598 b = strconv.AppendInt(b, int64(h), 10)
599 b = append(b, gu.timeSeparator...)
605 b = strconv.AppendInt(b, int64(t.Minute()), 10)
606 b = append(b, gu.timeSeparator...)
612 b = strconv.AppendInt(b, int64(t.Second()), 10)
613 b = append(b, []byte{0x20}...)
616 b = append(b, gu.periodsAbbreviated[0]...)
618 b = append(b, gu.periodsAbbreviated[1]...)
621 b = append(b, []byte{0x20}...)
629 // FmtTimeFull returns the full time representation of 't' for 'gu_IN'
630 func (gu *gu_IN) FmtTimeFull(t time.Time) string {
632 b := make([]byte, 0, 32)
644 b = strconv.AppendInt(b, int64(h), 10)
645 b = append(b, gu.timeSeparator...)
651 b = strconv.AppendInt(b, int64(t.Minute()), 10)
652 b = append(b, gu.timeSeparator...)
658 b = strconv.AppendInt(b, int64(t.Second()), 10)
659 b = append(b, []byte{0x20}...)
662 b = append(b, gu.periodsAbbreviated[0]...)
664 b = append(b, gu.periodsAbbreviated[1]...)
667 b = append(b, []byte{0x20}...)
671 if btz, ok := gu.timezones[tz]; ok {
672 b = append(b, btz...)