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 'ta_SG' 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", "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", "RM", "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", "$", "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", "US$", "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{"முற்பகல்", "பிற்பகல்"},
71 erasAbbreviated: []string{"கி.மு.", "கி.பி."},
72 erasNarrow: []string{"", ""},
73 erasWide: []string{"கிறிஸ்துவுக்கு முன்", "அன்னோ டோமினி"},
74 timezones: map[string]string{"UYT": "உருகுவே நிலையான நேரம்", "HENOMX": "வடமேற்கு மெக்ஸிகோ பகலொளி நேரம்", "WITA": "மத்திய இந்தோனேசிய நேரம்", "HNT": "நியூஃபவுண்ட்லாந்து நிலையான நேரம்", "ECT": "ஈக்வடார் நேரம்", "AKST": "அலாஸ்கா நிலையான நேரம்", "MST": "மவுன்டைன் நிலையான நேரம்", "ACDT": "ஆஸ்திரேலியன் மத்திய பகலொளி நேரம்", "ChST": "சாமோரோ நிலையான நேரம்", "HNPM": "செயின்ட் பியரி & மிக்குயிலான் நிலையான நேரம்", "TMT": "துர்க்மெனிஸ்தான் நிலையான நேரம்", "AWDT": "ஆஸ்திரேலியன் மேற்கத்திய பகலொளி நேரம்", "TMST": "துர்க்மெனிஸ்தான் கோடை நேரம்", "HADT": "ஹவாய்-அலேஷியன் பகலொளி நேரம்", "AST": "அட்லாண்டிக் நிலையான நேரம்", "CLST": "சிலி கோடை நேரம்", "COT": "கொலம்பியா நிலையான நேரம்", "GYT": "கயானா நேரம்", "CHADT": "சத்தாம் பகலொளி நேரம்", "AWST": "ஆஸ்திரேலியன் மேற்கத்திய நிலையான நேரம்", "WARST": "மேற்கத்திய அர்ஜென்டினா கோடை நேரம்", "EAT": "கிழக்கு ஆப்பிரிக்க நேரம்", "HKST": "ஹாங்காங் கோடை நேரம்", "HEPM": "செயின்ட் பியரி & மிக்குயிலான் பகலொளி நேரம்", "PDT": "பசிபிக் பகலொளி நேரம்", "BT": "பூடான் நேரம்", "ART": "அர்ஜென்டினா நிலையான நேரம்", "COST": "கொலம்பியா கோடை நேரம்", "GFT": "ஃபிரஞ்சு கயானா நேரம்", "EDT": "கிழக்கத்திய பகலொளி நேரம்", "ACST": "ஆஸ்திரேலியன் மத்திய நிலையான நேரம்", "JST": "ஜப்பான் நிலையான நேரம்", "WAT": "மேற்கு ஆப்பிரிக்க நிலையான நேரம்", "HNEG": "கிழக்கு கிரீன்லாந்து நிலையான நேரம்", "BOT": "பொலிவியா நேரம்", "OESZ": "கிழக்கத்திய ஐரோப்பிய கோடை நேரம்", "WAST": "மேற்கு ஆப்பிரிக்க கோடை நேரம்", "EST": "கிழக்கத்திய நிலையான நேரம்", "ARST": "அர்ஜென்டினா கோடை நேரம்", "HEOG": "மேற்கு கிரீன்லாந்து கோடை நேரம்", "AKDT": "அலாஸ்கா பகலொளி நேரம்", "HECU": "கியூபா பகலொளி நேரம்", "WESZ": "மேற்கத்திய ஐரோப்பிய கோடை நேரம்", "HAST": "ஹவாய்-அலேஷியன் நிலையான நேரம்", "WART": "மேற்கத்திய அர்ஜென்டினா நிலையான நேரம்", "HNNOMX": "வடமேற்கு மெக்ஸிகோ நிலையான நேரம்", "SAST": "தென் ஆப்பிரிக்க நிலையான நேரம்", "CLT": "சிலி நிலையான நேரம்", "HKT": "ஹாங்காங் நிலையான நேரம்", "MEZ": "மத்திய ஐரோப்பிய நிலையான நேரம்", "OEZ": "கிழக்கத்திய ஐரோப்பிய நிலையான நேரம்", "HNPMX": "மெக்ஸிகன் பசிபிக் நிலையான நேரம்", "HNCU": "கியூபா நிலையான நேரம்", "WIT": "கிழக்கத்திய இந்தோனேசிய நேரம்", "NZDT": "நியூசிலாந்து பகலொளி நேரம்", "IST": "இந்திய நிலையான நேரம்", "AEST": "ஆஸ்திரேலியன் கிழக்கத்திய நிலையான நேரம்", "HEEG": "கிழக்கு கிரீன்லாந்து கோடை நேரம்", "WIB": "மேற்கத்திய இந்தோனேசிய நேரம்", "MESZ": "மத்திய ஐரோப்பிய கோடை நேரம்", "CAT": "மத்திய ஆப்பிரிக்க நேரம்", "SRT": "சுரினாம் நேரம்", "ACWST": "ஆஸ்திரேலியன் மத்திய மேற்கத்திய நிலையான நேரம்", "MDT": "மவுன்டைன் பகலொளி நேரம்", "SGT": "சிங்கப்பூர் நிலையான நேரம்", "CHAST": "சத்தாம் நிலையான நேரம்", "CST": "மத்திய நிலையான நேரம்", "ACWDT": "ஆஸ்திரேலியன் மத்திய மேற்கத்திய பகலொளி நேரம்", "MYT": "மலேஷிய நேரம்", "NZST": "நியூசிலாந்து நிலையான நேரம்", "∅∅∅": "அசோர்ஸ் கோடை நேரம்", "ADT": "அட்லாண்டிக் பகலொளி நேரம்", "AEDT": "ஆஸ்திரேலியன் கிழக்கத்திய பகலொளி நேரம்", "HAT": "நியூஃபவுண்ட்லாந்து பகலொளி நேரம்", "UYST": "உருகுவே கோடை நேரம்", "HNOG": "மேற்கு கிரீன்லாந்து நிலையான நேரம்", "WEZ": "மேற்கத்திய ஐரோப்பிய நிலையான நேரம்", "HEPMX": "மெக்ஸிகன் பசிபிக் பகலொளி நேரம்", "GMT": "கிரீன்விச் சராசரி நேரம்", "CDT": "மத்திய பகலொளி நேரம்", "VET": "வெனிசுலா நேரம்", "JDT": "ஜப்பான் பகலொளி நேரம்", "LHST": "லார்ட் ஹோவ் நிலையான நேரம்", "LHDT": "லார்ட் ஹோவ் பகலொளி நேரம்", "PST": "பசிபிக் நிலையான நேரம்"},
78 // Locale returns the current translators string locale
79 func (ta *ta_SG) Locale() string {
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'ta_SG'
84 func (ta *ta_SG) PluralsCardinal() []locales.PluralRule {
85 return ta.pluralsCardinal
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'ta_SG'
89 func (ta *ta_SG) PluralsOrdinal() []locales.PluralRule {
90 return ta.pluralsOrdinal
93 // PluralsRange returns the list of range plural rules associated with 'ta_SG'
94 func (ta *ta_SG) PluralsRange() []locales.PluralRule {
95 return ta.pluralsRange
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'ta_SG'
99 func (ta *ta_SG) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
104 return locales.PluralRuleOne
107 return locales.PluralRuleOther
110 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'ta_SG'
111 func (ta *ta_SG) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
112 return locales.PluralRuleOther
115 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'ta_SG'
116 func (ta *ta_SG) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
118 start := ta.CardinalPluralRule(num1, v1)
119 end := ta.CardinalPluralRule(num2, v2)
121 if start == locales.PluralRuleOne && end == locales.PluralRuleOther {
122 return locales.PluralRuleOther
123 } else if start == locales.PluralRuleOther && end == locales.PluralRuleOne {
124 return locales.PluralRuleOne
127 return locales.PluralRuleOther
131 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
132 func (ta *ta_SG) MonthAbbreviated(month time.Month) string {
133 return ta.monthsAbbreviated[month]
136 // MonthsAbbreviated returns the locales abbreviated months
137 func (ta *ta_SG) MonthsAbbreviated() []string {
138 return ta.monthsAbbreviated[1:]
141 // MonthNarrow returns the locales narrow month given the 'month' provided
142 func (ta *ta_SG) MonthNarrow(month time.Month) string {
143 return ta.monthsNarrow[month]
146 // MonthsNarrow returns the locales narrow months
147 func (ta *ta_SG) MonthsNarrow() []string {
148 return ta.monthsNarrow[1:]
151 // MonthWide returns the locales wide month given the 'month' provided
152 func (ta *ta_SG) MonthWide(month time.Month) string {
153 return ta.monthsWide[month]
156 // MonthsWide returns the locales wide months
157 func (ta *ta_SG) MonthsWide() []string {
158 return ta.monthsWide[1:]
161 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
162 func (ta *ta_SG) WeekdayAbbreviated(weekday time.Weekday) string {
163 return ta.daysAbbreviated[weekday]
166 // WeekdaysAbbreviated returns the locales abbreviated weekdays
167 func (ta *ta_SG) WeekdaysAbbreviated() []string {
168 return ta.daysAbbreviated
171 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
172 func (ta *ta_SG) WeekdayNarrow(weekday time.Weekday) string {
173 return ta.daysNarrow[weekday]
176 // WeekdaysNarrow returns the locales narrow weekdays
177 func (ta *ta_SG) WeekdaysNarrow() []string {
181 // WeekdayShort returns the locales short weekday given the 'weekday' provided
182 func (ta *ta_SG) WeekdayShort(weekday time.Weekday) string {
183 return ta.daysShort[weekday]
186 // WeekdaysShort returns the locales short weekdays
187 func (ta *ta_SG) WeekdaysShort() []string {
191 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
192 func (ta *ta_SG) WeekdayWide(weekday time.Weekday) string {
193 return ta.daysWide[weekday]
196 // WeekdaysWide returns the locales wide weekdays
197 func (ta *ta_SG) WeekdaysWide() []string {
201 // Decimal returns the decimal point of number
202 func (ta *ta_SG) Decimal() string {
206 // Group returns the group of number
207 func (ta *ta_SG) Group() string {
211 // Group returns the minus sign of number
212 func (ta *ta_SG) Minus() string {
216 // FmtNumber returns 'num' with digits/precision of 'v' for 'ta_SG' and handles both Whole and Real numbers based on 'v'
217 func (ta *ta_SG) FmtNumber(num float64, v uint64) string {
219 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
220 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
223 b := make([]byte, 0, l)
225 for i := len(s) - 1; i >= 0; i-- {
228 b = append(b, ta.decimal[0])
235 b = append(b, ta.group[0])
246 b = append(b, ta.minus[0])
250 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
251 b[i], b[j] = b[j], b[i]
257 // FmtPercent returns 'num' with digits/precision of 'v' for 'ta_SG' and handles both Whole and Real numbers based on 'v'
258 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
259 func (ta *ta_SG) FmtPercent(num float64, v uint64) string {
260 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
262 b := make([]byte, 0, l)
264 for i := len(s) - 1; i >= 0; i-- {
267 b = append(b, ta.decimal[0])
275 b = append(b, ta.minus[0])
279 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
280 b[i], b[j] = b[j], b[i]
283 b = append(b, ta.percent...)
288 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'ta_SG'
289 func (ta *ta_SG) FmtCurrency(num float64, v uint64, currency currency.Type) string {
291 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
292 symbol := ta.currencies[currency]
293 l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
296 b := make([]byte, 0, l)
298 for i := len(s) - 1; i >= 0; i-- {
301 b = append(b, ta.decimal[0])
308 b = append(b, ta.group[0])
318 for j := len(symbol) - 1; j >= 0; j-- {
319 b = append(b, symbol[j])
322 for j := len(ta.currencyPositivePrefix) - 1; j >= 0; j-- {
323 b = append(b, ta.currencyPositivePrefix[j])
327 b = append(b, ta.minus[0])
331 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
332 b[i], b[j] = b[j], b[i]
338 b = append(b, ta.decimal...)
341 for i := 0; i < 2-int(v); i++ {
349 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'ta_SG'
350 // in accounting notation.
351 func (ta *ta_SG) FmtAccounting(num float64, v uint64, currency currency.Type) string {
353 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
354 symbol := ta.currencies[currency]
355 l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
358 b := make([]byte, 0, l)
360 for i := len(s) - 1; i >= 0; i-- {
363 b = append(b, ta.decimal[0])
370 b = append(b, ta.group[0])
382 for j := len(symbol) - 1; j >= 0; j-- {
383 b = append(b, symbol[j])
386 for j := len(ta.currencyNegativePrefix) - 1; j >= 0; j-- {
387 b = append(b, ta.currencyNegativePrefix[j])
390 b = append(b, ta.minus[0])
394 for j := len(symbol) - 1; j >= 0; j-- {
395 b = append(b, symbol[j])
398 for j := len(ta.currencyPositivePrefix) - 1; j >= 0; j-- {
399 b = append(b, ta.currencyPositivePrefix[j])
405 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
406 b[i], b[j] = b[j], b[i]
412 b = append(b, ta.decimal...)
415 for i := 0; i < 2-int(v); i++ {
423 // FmtDateShort returns the short date representation of 't' for 'ta_SG'
424 func (ta *ta_SG) FmtDateShort(t time.Time) string {
426 b := make([]byte, 0, 32)
428 b = strconv.AppendInt(b, int64(t.Day()), 10)
429 b = append(b, []byte{0x2f}...)
430 b = strconv.AppendInt(b, int64(t.Month()), 10)
431 b = append(b, []byte{0x2f}...)
434 b = append(b, strconv.Itoa(t.Year())[2:]...)
436 b = append(b, strconv.Itoa(t.Year())[1:]...)
442 // FmtDateMedium returns the medium date representation of 't' for 'ta_SG'
443 func (ta *ta_SG) FmtDateMedium(t time.Time) string {
445 b := make([]byte, 0, 32)
447 b = strconv.AppendInt(b, int64(t.Day()), 10)
448 b = append(b, []byte{0x20}...)
449 b = append(b, ta.monthsAbbreviated[t.Month()]...)
450 b = append(b, []byte{0x2c, 0x20}...)
453 b = strconv.AppendInt(b, int64(t.Year()), 10)
455 b = strconv.AppendInt(b, int64(-t.Year()), 10)
461 // FmtDateLong returns the long date representation of 't' for 'ta_SG'
462 func (ta *ta_SG) FmtDateLong(t time.Time) string {
464 b := make([]byte, 0, 32)
466 b = strconv.AppendInt(b, int64(t.Day()), 10)
467 b = append(b, []byte{0x20}...)
468 b = append(b, ta.monthsWide[t.Month()]...)
469 b = append(b, []byte{0x2c, 0x20}...)
472 b = strconv.AppendInt(b, int64(t.Year()), 10)
474 b = strconv.AppendInt(b, int64(-t.Year()), 10)
480 // FmtDateFull returns the full date representation of 't' for 'ta_SG'
481 func (ta *ta_SG) FmtDateFull(t time.Time) string {
483 b := make([]byte, 0, 32)
485 b = append(b, ta.daysWide[t.Weekday()]...)
486 b = append(b, []byte{0x2c, 0x20}...)
487 b = strconv.AppendInt(b, int64(t.Day()), 10)
488 b = append(b, []byte{0x20}...)
489 b = append(b, ta.monthsWide[t.Month()]...)
490 b = append(b, []byte{0x2c, 0x20}...)
493 b = strconv.AppendInt(b, int64(t.Year()), 10)
495 b = strconv.AppendInt(b, int64(-t.Year()), 10)
501 // FmtTimeShort returns the short time representation of 't' for 'ta_SG'
502 func (ta *ta_SG) FmtTimeShort(t time.Time) string {
504 b := make([]byte, 0, 32)
507 b = append(b, ta.periodsAbbreviated[0]...)
509 b = append(b, ta.periodsAbbreviated[1]...)
512 b = append(b, []byte{0x20}...)
520 b = strconv.AppendInt(b, int64(h), 10)
521 b = append(b, ta.timeSeparator...)
527 b = strconv.AppendInt(b, int64(t.Minute()), 10)
532 // FmtTimeMedium returns the medium time representation of 't' for 'ta_SG'
533 func (ta *ta_SG) FmtTimeMedium(t time.Time) string {
535 b := make([]byte, 0, 32)
538 b = append(b, ta.periodsAbbreviated[0]...)
540 b = append(b, ta.periodsAbbreviated[1]...)
543 b = append(b, []byte{0x20}...)
551 b = strconv.AppendInt(b, int64(h), 10)
552 b = append(b, ta.timeSeparator...)
558 b = strconv.AppendInt(b, int64(t.Minute()), 10)
559 b = append(b, ta.timeSeparator...)
565 b = strconv.AppendInt(b, int64(t.Second()), 10)
570 // FmtTimeLong returns the long time representation of 't' for 'ta_SG'
571 func (ta *ta_SG) FmtTimeLong(t time.Time) string {
573 b := make([]byte, 0, 32)
576 b = append(b, ta.periodsAbbreviated[0]...)
578 b = append(b, ta.periodsAbbreviated[1]...)
581 b = append(b, []byte{0x20}...)
589 b = strconv.AppendInt(b, int64(h), 10)
590 b = append(b, ta.timeSeparator...)
596 b = strconv.AppendInt(b, int64(t.Minute()), 10)
597 b = append(b, ta.timeSeparator...)
603 b = strconv.AppendInt(b, int64(t.Second()), 10)
604 b = append(b, []byte{0x20}...)
612 // FmtTimeFull returns the full time representation of 't' for 'ta_SG'
613 func (ta *ta_SG) FmtTimeFull(t time.Time) string {
615 b := make([]byte, 0, 32)
618 b = append(b, ta.periodsAbbreviated[0]...)
620 b = append(b, ta.periodsAbbreviated[1]...)
623 b = append(b, []byte{0x20}...)
631 b = strconv.AppendInt(b, int64(h), 10)
632 b = append(b, ta.timeSeparator...)
638 b = strconv.AppendInt(b, int64(t.Minute()), 10)
639 b = append(b, ta.timeSeparator...)
645 b = strconv.AppendInt(b, int64(t.Second()), 10)
646 b = append(b, []byte{0x20}...)
650 if btz, ok := ta.timezones[tz]; ok {
651 b = append(b, btz...)