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 'th_TH' locale
45 func New() locales.Translator {
48 pluralsCardinal: []locales.PluralRule{6},
49 pluralsOrdinal: []locales.PluralRule{6},
50 pluralsRange: []locales.PluralRule{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{"", "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."},
62 monthsNarrow: []string{"", "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."},
63 monthsWide: []string{"", "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"},
64 daysAbbreviated: []string{"อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."},
65 daysNarrow: []string{"อา", "จ", "อ", "พ", "พฤ", "ศ", "ส"},
66 daysShort: []string{"อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."},
67 daysWide: []string{"วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์"},
68 periodsAbbreviated: []string{"ก่อนเที่ยง", "หลังเที่ยง"},
69 periodsNarrow: []string{"a", "p"},
70 periodsWide: []string{"ก่อนเที่ยง", "หลังเที่ยง"},
71 erasAbbreviated: []string{"ปีก่อน ค.ศ.", "ค.ศ."},
72 erasNarrow: []string{"ก่อน ค.ศ.", "ค.ศ."},
73 erasWide: []string{"ปีก่อนคริสต์ศักราช", "คริสต์ศักราช"},
74 timezones: map[string]string{"HNPM": "เวลามาตรฐานแซงปีแยร์และมีเกอลง", "NZDT": "เวลาออมแสงนิวซีแลนด์", "COST": "เวลาฤดูร้อนโคลอมเบีย", "WART": "เวลามาตรฐานทางตะวันตกของอาร์เจนตินา", "TMST": "เวลาฤดูร้อนเติร์กเมนิสถาน", "SGT": "เวลาสิงคโปร์", "CDT": "เวลาออมแสงตอนกลางในอเมริกาเหนือ", "TMT": "เวลามาตรฐานเติร์กเมนิสถาน", "AEDT": "เวลาออมแสงทางตะวันออกของออสเตรเลีย", "HNOG": "เวลามาตรฐานกรีนแลนด์ตะวันตก", "HNEG": "เวลามาตรฐานกรีนแลนด์ตะวันออก", "EST": "เวลามาตรฐานทางตะวันออกในอเมริกาเหนือ", "HNCU": "เวลามาตรฐานคิวบา", "JDT": "เวลาออมแสงญี่ปุ่น", "VET": "เวลาเวเนซุเอลา", "WIB": "เวลาอินโดนีเซียฝั่งตะวันตก", "CLT": "เวลามาตรฐานชิลี", "ACDT": "เวลาออมแสงทางตอนกลางของออสเตรเลีย", "ChST": "เวลาชามอร์โร", "HNPMX": "เวลามาตรฐานแปซิฟิกเม็กซิโก", "MEZ": "เวลามาตรฐานยุโรปกลาง", "AST": "เวลามาตรฐานแอตแลนติก", "HKST": "เวลาฤดูร้อนฮ่องกง", "OESZ": "เวลาฤดูร้อนยุโรปตะวันออก", "WARST": "เวลาฤดูร้อนทางตะวันตกของอาร์เจนตินา", "CST": "เวลามาตรฐานตอนกลางในอเมริกาเหนือ", "PST": "เวลามาตรฐานแปซิฟิกในอเมริกาเหนือ", "HAST": "เวลามาตรฐานฮาวาย-อะลูเชียน", "HADT": "เวลาออมแสงฮาวาย-อะลูเชียน", "SAST": "เวลาแอฟริกาใต้", "HNT": "เวลามาตรฐานนิวฟันด์แลนด์", "ACST": "เวลามาตรฐานทางตอนกลางของออสเตรเลีย", "PDT": "เวลาออมแสงแปซิฟิกในอเมริกาเหนือ", "NZST": "เวลามาตรฐานนิวซีแลนด์", "HNNOMX": "เวลามาตรฐานเม็กซิโกตะวันตกเฉียงเหนือ", "WAST": "เวลาฤดูร้อนแอฟริกาตะวันตก", "AKDT": "เวลาออมแสงของอะแลสกา", "ECT": "เวลาเอกวาดอร์", "WEZ": "เวลามาตรฐานยุโรปตะวันตก", "HEPM": "เวลาออมแสงของแซงปีแยร์และมีเกอลง", "HENOMX": "เวลาออมแสงเม็กซิโกตะวันตกเฉียงเหนือ", "ART": "เวลามาตรฐานอาร์เจนตินา", "EDT": "เวลาออมแสงทางตะวันออกในอเมริกาเหนือ", "WESZ": "เวลาฤดูร้อนยุโรปตะวันตก", "CHAST": "เวลามาตรฐานแชทัม", "MDT": "เวลาฤดูร้อนมาเก๊า", "ACWST": "เวลามาตรฐานทางตะวันตกตอนกลางของออสเตรเลีย", "CAT": "เวลาแอฟริกากลาง", "MYT": "เวลามาเลเซีย", "WITA": "เวลาอินโดนีเซียตอนกลาง", "JST": "เวลามาตรฐานญี่ปุ่น", "LHDT": "เวลาออมแสงลอร์ดโฮว์", "ARST": "เวลาฤดูร้อนอาร์เจนตินา", "HEPMX": "เวลาออมแสงแปซิฟิกเม็กซิโก", "GMT": "เวลามาตรฐานกรีนิช", "HECU": "เวลาออมแสงของคิวบา", "BT": "เวลาภูฏาน", "MESZ": "เวลาฤดูร้อนยุโรปกลาง", "EAT": "เวลาแอฟริกาตะวันออก", "AKST": "เวลามาตรฐานอะแลสกา", "CHADT": "เวลาออมแสงแชทัม", "BOT": "เวลาโบลิเวีย", "SRT": "เวลาซูรินาเม", "ACWDT": "เวลาออมแสงทางตะวันตกตอนกลางของออสเตรเลีย", "UYST": "เวลาฤดูร้อนอุรุกวัย", "WIT": "เวลาอินโดนีเซียฝั่งตะวันออก", "IST": "เวลาอินเดีย", "∅∅∅": "เวลาฤดูร้อนแอมะซอน", "HEEG": "เวลาฤดูร้อนกรีนแลนด์ตะวันออก", "WAT": "เวลามาตรฐานแอฟริกาตะวันตก", "GYT": "เวลากายอานา", "MST": "เวลามาตรฐานมาเก๊า", "UYT": "เวลามาตรฐานอุรุกวัย", "LHST": "เวลามาตรฐานลอร์ดโฮว์", "COT": "เวลามาตรฐานโคลอมเบีย", "GFT": "เวลาเฟรนช์เกียนา", "OEZ": "เวลามาตรฐานยุโรปตะวันออก", "ADT": "เวลาออมแสงของแอตแลนติก", "HKT": "เวลามาตรฐานฮ่องกง", "CLST": "เวลาฤดูร้อนชิลี", "AWST": "เวลามาตรฐานทางตะวันตกของออสเตรเลีย", "AWDT": "เวลาออมแสงทางตะวันตกของออสเตรเลีย", "AEST": "เวลามาตรฐานทางตะวันออกของออสเตรเลีย", "HEOG": "เวลาฤดูร้อนกรีนแลนด์ตะวันตก", "HAT": "เวลาออมแสงนิวฟันด์แลนด์"},
78 // Locale returns the current translators string locale
79 func (th *th_TH) Locale() string {
83 // PluralsCardinal returns the list of cardinal plural rules associated with 'th_TH'
84 func (th *th_TH) PluralsCardinal() []locales.PluralRule {
85 return th.pluralsCardinal
88 // PluralsOrdinal returns the list of ordinal plural rules associated with 'th_TH'
89 func (th *th_TH) PluralsOrdinal() []locales.PluralRule {
90 return th.pluralsOrdinal
93 // PluralsRange returns the list of range plural rules associated with 'th_TH'
94 func (th *th_TH) PluralsRange() []locales.PluralRule {
95 return th.pluralsRange
98 // CardinalPluralRule returns the cardinal PluralRule given 'num' and digits/precision of 'v' for 'th_TH'
99 func (th *th_TH) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
100 return locales.PluralRuleOther
103 // OrdinalPluralRule returns the ordinal PluralRule given 'num' and digits/precision of 'v' for 'th_TH'
104 func (th *th_TH) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
105 return locales.PluralRuleOther
108 // RangePluralRule returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for 'th_TH'
109 func (th *th_TH) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) locales.PluralRule {
110 return locales.PluralRuleOther
113 // MonthAbbreviated returns the locales abbreviated month given the 'month' provided
114 func (th *th_TH) MonthAbbreviated(month time.Month) string {
115 return th.monthsAbbreviated[month]
118 // MonthsAbbreviated returns the locales abbreviated months
119 func (th *th_TH) MonthsAbbreviated() []string {
120 return th.monthsAbbreviated[1:]
123 // MonthNarrow returns the locales narrow month given the 'month' provided
124 func (th *th_TH) MonthNarrow(month time.Month) string {
125 return th.monthsNarrow[month]
128 // MonthsNarrow returns the locales narrow months
129 func (th *th_TH) MonthsNarrow() []string {
130 return th.monthsNarrow[1:]
133 // MonthWide returns the locales wide month given the 'month' provided
134 func (th *th_TH) MonthWide(month time.Month) string {
135 return th.monthsWide[month]
138 // MonthsWide returns the locales wide months
139 func (th *th_TH) MonthsWide() []string {
140 return th.monthsWide[1:]
143 // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided
144 func (th *th_TH) WeekdayAbbreviated(weekday time.Weekday) string {
145 return th.daysAbbreviated[weekday]
148 // WeekdaysAbbreviated returns the locales abbreviated weekdays
149 func (th *th_TH) WeekdaysAbbreviated() []string {
150 return th.daysAbbreviated
153 // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided
154 func (th *th_TH) WeekdayNarrow(weekday time.Weekday) string {
155 return th.daysNarrow[weekday]
158 // WeekdaysNarrow returns the locales narrow weekdays
159 func (th *th_TH) WeekdaysNarrow() []string {
163 // WeekdayShort returns the locales short weekday given the 'weekday' provided
164 func (th *th_TH) WeekdayShort(weekday time.Weekday) string {
165 return th.daysShort[weekday]
168 // WeekdaysShort returns the locales short weekdays
169 func (th *th_TH) WeekdaysShort() []string {
173 // WeekdayWide returns the locales wide weekday given the 'weekday' provided
174 func (th *th_TH) WeekdayWide(weekday time.Weekday) string {
175 return th.daysWide[weekday]
178 // WeekdaysWide returns the locales wide weekdays
179 func (th *th_TH) WeekdaysWide() []string {
183 // Decimal returns the decimal point of number
184 func (th *th_TH) Decimal() string {
188 // Group returns the group of number
189 func (th *th_TH) Group() string {
193 // Group returns the minus sign of number
194 func (th *th_TH) Minus() string {
198 // FmtNumber returns 'num' with digits/precision of 'v' for 'th_TH' and handles both Whole and Real numbers based on 'v'
199 func (th *th_TH) FmtNumber(num float64, v uint64) string {
201 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
202 l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3
205 b := make([]byte, 0, l)
207 for i := len(s) - 1; i >= 0; i-- {
210 b = append(b, th.decimal[0])
217 b = append(b, th.group[0])
228 b = append(b, th.minus[0])
232 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
233 b[i], b[j] = b[j], b[i]
239 // FmtPercent returns 'num' with digits/precision of 'v' for 'th_TH' and handles both Whole and Real numbers based on 'v'
240 // NOTE: 'num' passed into FmtPercent is assumed to be in percent already
241 func (th *th_TH) FmtPercent(num float64, v uint64) string {
242 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
244 b := make([]byte, 0, l)
246 for i := len(s) - 1; i >= 0; i-- {
249 b = append(b, th.decimal[0])
257 b = append(b, th.minus[0])
261 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
262 b[i], b[j] = b[j], b[i]
265 b = append(b, th.percent...)
270 // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'th_TH'
271 func (th *th_TH) FmtCurrency(num float64, v uint64, currency currency.Type) string {
273 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
274 symbol := th.currencies[currency]
275 l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3
278 b := make([]byte, 0, l)
280 for i := len(s) - 1; i >= 0; i-- {
283 b = append(b, th.decimal[0])
290 b = append(b, th.group[0])
300 for j := len(symbol) - 1; j >= 0; j-- {
301 b = append(b, symbol[j])
305 b = append(b, th.minus[0])
309 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
310 b[i], b[j] = b[j], b[i]
316 b = append(b, th.decimal...)
319 for i := 0; i < 2-int(v); i++ {
327 // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'th_TH'
328 // in accounting notation.
329 func (th *th_TH) FmtAccounting(num float64, v uint64, currency currency.Type) string {
331 s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64)
332 symbol := th.currencies[currency]
333 l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3
336 b := make([]byte, 0, l)
338 for i := len(s) - 1; i >= 0; i-- {
341 b = append(b, th.decimal[0])
348 b = append(b, th.group[0])
360 for j := len(symbol) - 1; j >= 0; j-- {
361 b = append(b, symbol[j])
364 b = append(b, th.currencyNegativePrefix[0])
368 for j := len(symbol) - 1; j >= 0; j-- {
369 b = append(b, symbol[j])
375 for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
376 b[i], b[j] = b[j], b[i]
382 b = append(b, th.decimal...)
385 for i := 0; i < 2-int(v); i++ {
391 b = append(b, th.currencyNegativeSuffix...)
397 // FmtDateShort returns the short date representation of 't' for 'th_TH'
398 func (th *th_TH) FmtDateShort(t time.Time) string {
400 b := make([]byte, 0, 32)
402 b = strconv.AppendInt(b, int64(t.Day()), 10)
403 b = append(b, []byte{0x2f}...)
404 b = strconv.AppendInt(b, int64(t.Month()), 10)
405 b = append(b, []byte{0x2f}...)
408 b = append(b, strconv.Itoa(t.Year())[2:]...)
410 b = append(b, strconv.Itoa(t.Year())[1:]...)
416 // FmtDateMedium returns the medium date representation of 't' for 'th_TH'
417 func (th *th_TH) FmtDateMedium(t time.Time) string {
419 b := make([]byte, 0, 32)
421 b = strconv.AppendInt(b, int64(t.Day()), 10)
422 b = append(b, []byte{0x20}...)
423 b = append(b, th.monthsAbbreviated[t.Month()]...)
424 b = append(b, []byte{0x20}...)
427 b = strconv.AppendInt(b, int64(t.Year()), 10)
429 b = strconv.AppendInt(b, int64(-t.Year()), 10)
435 // FmtDateLong returns the long date representation of 't' for 'th_TH'
436 func (th *th_TH) FmtDateLong(t time.Time) string {
438 b := make([]byte, 0, 32)
440 b = strconv.AppendInt(b, int64(t.Day()), 10)
441 b = append(b, []byte{0x20}...)
442 b = append(b, th.monthsWide[t.Month()]...)
443 b = append(b, []byte{0x20}...)
446 b = append(b, th.erasAbbreviated[0]...)
448 b = append(b, th.erasAbbreviated[1]...)
451 b = append(b, []byte{0x20}...)
454 b = strconv.AppendInt(b, int64(t.Year()), 10)
456 b = strconv.AppendInt(b, int64(-t.Year()), 10)
462 // FmtDateFull returns the full date representation of 't' for 'th_TH'
463 func (th *th_TH) FmtDateFull(t time.Time) string {
465 b := make([]byte, 0, 32)
467 b = append(b, th.daysWide[t.Weekday()]...)
468 b = append(b, []byte{0xe0, 0xb8, 0x97, 0xe0, 0xb8, 0xb5, 0xe0, 0xb9, 0x88, 0x20}...)
469 b = strconv.AppendInt(b, int64(t.Day()), 10)
470 b = append(b, []byte{0x20}...)
471 b = append(b, th.monthsWide[t.Month()]...)
472 b = append(b, []byte{0x20}...)
475 b = append(b, th.erasWide[0]...)
477 b = append(b, th.erasWide[1]...)
480 b = append(b, []byte{0x20}...)
483 b = strconv.AppendInt(b, int64(t.Year()), 10)
485 b = strconv.AppendInt(b, int64(-t.Year()), 10)
491 // FmtTimeShort returns the short time representation of 't' for 'th_TH'
492 func (th *th_TH) FmtTimeShort(t time.Time) string {
494 b := make([]byte, 0, 32)
500 b = strconv.AppendInt(b, int64(t.Hour()), 10)
501 b = append(b, th.timeSeparator...)
507 b = strconv.AppendInt(b, int64(t.Minute()), 10)
512 // FmtTimeMedium returns the medium time representation of 't' for 'th_TH'
513 func (th *th_TH) FmtTimeMedium(t time.Time) string {
515 b := make([]byte, 0, 32)
521 b = strconv.AppendInt(b, int64(t.Hour()), 10)
522 b = append(b, th.timeSeparator...)
528 b = strconv.AppendInt(b, int64(t.Minute()), 10)
529 b = append(b, th.timeSeparator...)
535 b = strconv.AppendInt(b, int64(t.Second()), 10)
540 // FmtTimeLong returns the long time representation of 't' for 'th_TH'
541 func (th *th_TH) FmtTimeLong(t time.Time) string {
543 b := make([]byte, 0, 32)
545 b = strconv.AppendInt(b, int64(t.Hour()), 10)
546 b = append(b, []byte{0x20, 0xe0, 0xb8, 0x99, 0xe0, 0xb8, 0xb2, 0xe0, 0xb8, 0xac, 0xe0, 0xb8, 0xb4, 0xe0, 0xb8, 0x81, 0xe0, 0xb8, 0xb2, 0x20}...)
552 b = strconv.AppendInt(b, int64(t.Minute()), 10)
553 b = append(b, []byte{0x20, 0xe0, 0xb8, 0x99, 0xe0, 0xb8, 0xb2, 0xe0, 0xb8, 0x97, 0xe0, 0xb8, 0xb5, 0x20}...)
559 b = strconv.AppendInt(b, int64(t.Second()), 10)
560 b = append(b, []byte{0x20, 0xe0, 0xb8, 0xa7, 0xe0, 0xb8, 0xb4, 0xe0, 0xb8, 0x99, 0xe0, 0xb8, 0xb2, 0xe0, 0xb8, 0x97, 0xe0, 0xb8, 0xb5, 0x20}...)
568 // FmtTimeFull returns the full time representation of 't' for 'th_TH'
569 func (th *th_TH) FmtTimeFull(t time.Time) string {
571 b := make([]byte, 0, 32)
573 b = strconv.AppendInt(b, int64(t.Hour()), 10)
574 b = append(b, []byte{0x20, 0xe0, 0xb8, 0x99, 0xe0, 0xb8, 0xb2, 0xe0, 0xb8, 0xac, 0xe0, 0xb8, 0xb4, 0xe0, 0xb8, 0x81, 0xe0, 0xb8, 0xb2, 0x20}...)
580 b = strconv.AppendInt(b, int64(t.Minute()), 10)
581 b = append(b, []byte{0x20, 0xe0, 0xb8, 0x99, 0xe0, 0xb8, 0xb2, 0xe0, 0xb8, 0x97, 0xe0, 0xb8, 0xb5, 0x20}...)
587 b = strconv.AppendInt(b, int64(t.Second()), 10)
588 b = append(b, []byte{0x20, 0xe0, 0xb8, 0xa7, 0xe0, 0xb8, 0xb4, 0xe0, 0xb8, 0x99, 0xe0, 0xb8, 0xb2, 0xe0, 0xb8, 0x97, 0xe0, 0xb8, 0xb5, 0x20}...)
592 if btz, ok := th.timezones[tz]; ok {
593 b = append(b, btz...)