Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/zu
diff options
context:
space:
mode:
authorjoeybloggs <dean.karn@gmail.com>2017-02-09 18:56:59 +0300
committerjoeybloggs <dean.karn@gmail.com>2017-02-09 18:56:59 +0300
commit7433bc2714ee97d97a4de5702bf99a055c464cef (patch)
tree4cb831175313f3688bafb7ce21da6d5368aedd15 /zu
parent273913d3b2ff7127452603d55dd3f6f888e4f268 (diff)
Update to CLDR v30.0.3v30-cldr
- Regenerated locale data from v30.0.3 CLDR data - Added negative year check for FmtDataXXX functions with 4 digit years - update ru_RU test to handle change of short date format from v29 dd.MM.yy to v30 dd.MM.y
Diffstat (limited to 'zu')
-rw-r--r--zu/zu.go89
1 files changed, 33 insertions, 56 deletions
diff --git a/zu/zu.go b/zu/zu.go
index aca04584..2debb9d4 100644
--- a/zu/zu.go
+++ b/zu/zu.go
@@ -55,12 +55,12 @@ func New() locales.Translator {
perMille: "‰",
timeSeparator: ":",
inifinity: "∞",
- currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "A$", "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", "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", "ETB", "€", "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", "R", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"},
+ currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "A$", "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", "ETB", "€", "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", "R", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"},
currencyNegativePrefix: "(",
currencyNegativeSuffix: ")",
monthsAbbreviated: []string{"", "Jan", "Feb", "Mas", "Eph", "Mey", "Jun", "Jul", "Aga", "Sep", "Okt", "Nov", "Dis"},
monthsNarrow: []string{"", "J", "F", "M", "E", "M", "J", "J", "A", "S", "O", "N", "D"},
- monthsWide: []string{"", "Januwari", "Februwari", "Mashi", "Ephreli", "Meyi", "Juni", "Julayi", "Agasti", "Septhemba", "Okthoba", "Novemba", "Disemba"},
+ monthsWide: []string{"", "UMasingana", "Februwari", "Mashi", "Ephreli", "Meyi", "Juni", "Julayi", "Agasti", "Septhemba", "Okthoba", "Novemba", "Disemba"},
daysAbbreviated: []string{"Son", "Mso", "Bil", "Tha", "Sin", "Hla", "Mgq"},
daysNarrow: []string{"S", "M", "B", "T", "S", "H", "M"},
daysShort: []string{"Son", "Mso", "Bil", "Tha", "Sin", "Hla", "Mgq"},
@@ -71,7 +71,7 @@ func New() locales.Translator {
erasAbbreviated: []string{"BC", "AD"},
erasNarrow: []string{"", ""},
erasWide: []string{"BC", "AD"},
- timezones: map[string]string{"PDT": "isikhathi sase-North American Pacific sasemini", "ADT": "isikhathi sase-Atlantic sasemini", "TMST": "Isikhathi sehlobo sase-Turkmenistan", "ChST": "Isikhathi esijwayelekile sase-Chamorro", "GMT": "Isikhathi sase-Greenwich Mean", "HAST": "isikhathi sase-Hawaii-Aleutia esijwayelekile", "CHAST": "Isikhathi esivamile sase-Chatham", "EDT": "isikhathi sase-North American East sasemini", "MST": "isikhathi sase-North American Mountain esijwayelekile", "AWST": "I-Australian Western Standard Time", "OEZ": "Isikhathi esijwayelekile sase-Eastern Europe", "WEZ": "Isikhathi esijwayelekile sase-Western Europe", "AEST": "Isikhathi esivamile sase-Australian East", "EST": "isikhathi sase-North American East esijwayelekile", "WAST": "Isikhathi sasehlobo saseNtshonalanga Afrika", "UYST": "Isikhathi sase-Uruguay sasehlobo", "JST": "Isikhathi esivamile sase-Japan", "WARST": "Isikhathi saseNyakatho ne-Argentina sasehlobo", "NZDT": "Isikhathi sasemini sase-New Zealand", "WIB": "Isikhathi sase-Western Indonesia", "ACST": "esase-Austrilian Central Standard Time", "COST": "Isikhathi sase-Colombia sasehlobo", "AKST": "isikhathi sase-Alaska esijwayelekile", "WITA": "Isikhathi sase-Central Indonesia", "BT": "esase-Bhutan Time", "ACWDT": "Isikhathi sasemini sase-Australian Central West", "AEDT": "Isikhathi sasemini sase-Australian East", "PST": "isikhathi sase-North American Pacific esijwayelekile", "EAT": "Isikhathi saseMpumalanga Afrika", "WAT": "Isikhathi esijwayelekile saseNtshonalanga Afrika", "ACWST": "Isikhathi sase-Australian Central West esivamile", "HKST": "Isikhathi sehlobo sase-Hong Kong", "COT": "Isikhathi sase-Colombia esijwayelekile", "SRT": "Isikhathi sase-Suriname", "WESZ": "Isikhathi sasehlobo sase-Western Europe", "MESZ": "Isikhathi sasehlobo sase-Central Europe", "WART": "Isikhathi saseNyakatho ne-Argentina esijwayelekile", "SAST": "Isikhathi esijwayelekile saseNingizimu Afrika", "WIT": "Isikhathi sase-Eastern Indonesia", "LHST": "Isikhathi sase-Lord Howe esivamile", "JDT": "Isikhathi semini sase-Japan", "SGT": "Isikhathi esivamile sase-Singapore", "∅∅∅": "Isikhathi sase-Peru sasehlobo", "MYT": "Isikhathi sase-Malaysia", "CLT": "Isikhathi sase-Chile esijwayelekile", "UYT": "Isikhathi sase-Uruguay esijwayelekile", "HKT": "Isikhathi esivamile sase-Hong Kong", "IST": "esase-India Standard Time", "GYT": "Isikhathi sase-Guyana", "NZST": "Isikhathi esivamile sase-New Zealand", "CHADT": "Isikhathi semini sase-Chatham", "ARST": "Isikhathi sase-Argentina sasehlobo", "AWDT": "I-Australian Western Daylight Time", "MEZ": "Isikhathi esijwayelekile sase-Central Europe", "ACDT": "esase-Austrilian Central Daylight Time", "HADT": "isikhathi sase-Hawaii-Aleutia sasemini", "ART": "Isikhathi sase-Argentina esijwayelekile", "AKDT": "Isikhathi sase-Alaska sasemini", "HAT": "isikhathi sase-Newfoundland sasemini", "OESZ": "Isikhathi sasehlobo sase-Eastern Europe", "CST": "isikhathi sase-North American Central esijwayelekile", "MDT": "isikhathi sase-North American Mountain sasemini", "BOT": "Isikhathi sase-Bolivia", "CLST": "Isikhathi sase-Chile sasehlobo", "ECT": "Isikhathi sase-Ecuador", "AST": "isikhathi sase-Atlantic esijwayelekile", "HNT": "isikhathi sase-Newfoundland esijwayelekile", "VET": "Isikhathi sase-Venezuela", "TMT": "Isikhathi esivamile sase-Turkmenistan", "CDT": "isikhathi sase-North American Central sasemini", "CAT": "Isikhathi sase-Central Africa", "LHDT": "Isikhathi sase-Lord Howe sasemini", "GFT": "Isikhathi sase-French Guiana"},
+ timezones: map[string]string{"GMT": "Isikhathi sase-Greenwich Mean", "ACWST": "Isikhathi sase-Australian Central West esivamile", "ARST": "Isikhathi sase-Argentina sasehlobo", "HNEG": "Isikhathi sase-East Greenland esijwayelekile", "ACST": "Isikhathi sase-Australian Central esivamile", "EAT": "Isikhathi saseMpumalanga Afrika", "HNPMX": "Isikhathi sase-Mexican Pacific esijwayelekile", "AWST": "Isikhathi sase-Australian Western esivamile", "SAST": "Isikhathi esijwayelekile saseNingizimu Afrika", "∅∅∅": "Isikhathi sase-Amazon sasehlobo", "AEST": "Isikhathi esivamile sase-Australian East", "WAT": "Isikhathi esijwayelekile saseNtshonalanga Afrika", "WIT": "Isikhathi sase-Eastern Indonesia", "AKDT": "Isikhathi sase-Alaska sasemini", "UYT": "Isikhathi sase-Uruguay esijwayelekile", "ACWDT": "Isikhathi sasemini sase-Australian Central West", "CHAST": "Isikhathi esivamile sase-Chatham", "AKST": "Isikhathi sase-Alaska esijwayelekile", "EST": "Isikhathi sase-North American East esijwayelekile", "WIB": "Isikhathi sase-Western Indonesia", "WESZ": "Isikhathi sasehlobo sase-Western Europe", "AWDT": "Isikhathi sase-Australian Western sasemini", "HKT": "Isikhathi esivamile sase-Hong Kong", "ACDT": "Isikhathi sase-Australian Central sasemini", "HENOMX": "Isikhathi sase-Northwest Mexico sasemini", "TMST": "Isikhathi sehlobo sase-Turkmenistan", "HAT": "Isikhathi sase-Newfoundland sasemini", "AEDT": "Isikhathi sasemini sase-Australian East", "HEEG": "Isikhathi sase-East Greenland sasemini", "CAT": "Isikhathi sase-Central Africa", "COST": "Isikhathi sase-Colombia sasehlobo", "HADT": "Isikhathi sase-Hawaii-Aleutia sasemini", "OEZ": "Isikhathi esijwayelekile sase-Eastern Europe", "COT": "Isikhathi sase-Colombia esijwayelekile", "AST": "Isikhathi sase-Atlantic esijwayelekile", "HAST": "Isikhathi sase-Hawaii-Aleutia esijwayelekile", "WEZ": "Isikhathi esijwayelekile sase-Western Europe", "HNT": "Isikhathi sase-Newfoundland esijwayelekile", "PDT": "Isikhathi sase-North American Pacific sasemini", "WITA": "Isikhathi sase-Central Indonesia", "NZST": "Isikhathi esivamile sase-New Zealand", "BOT": "Isikhathi sase-Bolivia", "HNNOMX": "Isikhathi sase-Northwest Mexico esijwayelekile", "ADT": "Isikhathi sase-Atlantic sasemini", "GYT": "Isikhathi sase-Guyana", "HEOG": "Isikhathi sase-West Greenland sasehlobo", "HKST": "Isikhathi sehlobo sase-Hong Kong", "HEPM": "Isikhathi sase-Saint Pierre nase-Miquelon sasemini", "TMT": "Isikhathi esivamile sase-Turkmenistan", "WAST": "Isikhathi sasehlobo saseNtshonalanga Afrika", "SGT": "Isikhathi esivamile sase-Singapore", "HEPMX": "Isikhathi sase-Mexican Pacific sasemini", "CST": "Isikhathi sase-North American Central esijwayelekile", "MYT": "Isikhathi sase-Malaysia", "NZDT": "Isikhathi sasemini sase-New Zealand", "ECT": "Isikhathi sase-Ecuador", "WART": "Isikhathi saseNyakatho ne-Argentina esijwayelekile", "WARST": "Isikhathi saseNyakatho ne-Argentina sasehlobo", "MST": "MST", "MEZ": "Isikhathi esijwayelekile sase-Central Europe", "CLST": "Isikhathi sase-Chile sasehlobo", "CHADT": "Isikhathi sasemini sase-Chatham", "UYST": "Isikhathi sase-Uruguay sasehlobo", "LHST": "Isikhathi sase-Lord Howe esivamile", "LHDT": "Isikhathi sase-Lord Howe sasemini", "CLT": "Isikhathi sase-Chile esijwayelekile", "JDT": "Isikhathi semini sase-Japan", "GFT": "Isikhathi sase-French Guiana", "OESZ": "Isikhathi sasehlobo sase-Eastern Europe", "HNCU": "Isikhathi sase-Cuba esijwayelekile", "VET": "Isikhathi sase-Venezuela", "MESZ": "Isikhathi sasehlobo sase-Central Europe", "IST": "Isikhathi sase-India esivamile", "HNPM": "Iikhathi sase-Saint Pierre nase-Miquelon esijwayelekile", "HECU": "Isikhathi sase-Cuba sasemini", "MDT": "MDT", "EDT": "Isikhathi sase-North American East sasemini", "BT": "Isikhathi sase-Bhutan", "JST": "Isikhathi esivamile sase-Japan", "ChST": "Isikhathi esijwayelekile sase-Chamorro", "ART": "Isikhathi sase-Argentina esijwayelekile", "HNOG": "Isikhathi sase-West Greenland esijwayelekile", "PST": "Isikhathi sase-North American Pacific esijwayelekile", "CDT": "Isikhathi sase-North American Central sasemini", "SRT": "Isikhathi sase-Suriname"},
}
}
@@ -426,7 +426,12 @@ func (zu *zu) FmtDateMedium(t time.Time) string {
b = append(b, []byte{0x20}...)
b = strconv.AppendInt(b, int64(t.Day()), 10)
b = append(b, []byte{0x2c, 0x20}...)
- b = strconv.AppendInt(b, int64(t.Year()), 10)
+
+ if t.Year() > 0 {
+ b = strconv.AppendInt(b, int64(t.Year()), 10)
+ } else {
+ b = strconv.AppendInt(b, int64(t.Year()*-1), 10)
+ }
return string(b)
}
@@ -440,7 +445,12 @@ func (zu *zu) FmtDateLong(t time.Time) string {
b = append(b, []byte{0x20}...)
b = strconv.AppendInt(b, int64(t.Day()), 10)
b = append(b, []byte{0x2c, 0x20}...)
- b = strconv.AppendInt(b, int64(t.Year()), 10)
+
+ if t.Year() > 0 {
+ b = strconv.AppendInt(b, int64(t.Year()), 10)
+ } else {
+ b = strconv.AppendInt(b, int64(t.Year()*-1), 10)
+ }
return string(b)
}
@@ -456,7 +466,12 @@ func (zu *zu) FmtDateFull(t time.Time) string {
b = append(b, []byte{0x20}...)
b = strconv.AppendInt(b, int64(t.Day()), 10)
b = append(b, []byte{0x2c, 0x20}...)
- b = strconv.AppendInt(b, int64(t.Year()), 10)
+
+ if t.Year() > 0 {
+ b = strconv.AppendInt(b, int64(t.Year()), 10)
+ } else {
+ b = strconv.AppendInt(b, int64(t.Year()*-1), 10)
+ }
return string(b)
}
@@ -466,13 +481,11 @@ func (zu *zu) FmtTimeShort(t time.Time) string {
b := make([]byte, 0, 32)
- h := t.Hour()
-
- if h > 12 {
- h -= 12
+ if t.Hour() < 10 {
+ b = append(b, '0')
}
- b = strconv.AppendInt(b, int64(h), 10)
+ b = strconv.AppendInt(b, int64(t.Hour()), 10)
b = append(b, zu.timeSeparator...)
if t.Minute() < 10 {
@@ -480,13 +493,6 @@ func (zu *zu) FmtTimeShort(t time.Time) string {
}
b = strconv.AppendInt(b, int64(t.Minute()), 10)
- b = append(b, []byte{0x20}...)
-
- if t.Hour() < 12 {
- b = append(b, zu.periodsAbbreviated[0]...)
- } else {
- b = append(b, zu.periodsAbbreviated[1]...)
- }
return string(b)
}
@@ -496,13 +502,11 @@ func (zu *zu) FmtTimeMedium(t time.Time) string {
b := make([]byte, 0, 32)
- h := t.Hour()
-
- if h > 12 {
- h -= 12
+ if t.Hour() < 10 {
+ b = append(b, '0')
}
- b = strconv.AppendInt(b, int64(h), 10)
+ b = strconv.AppendInt(b, int64(t.Hour()), 10)
b = append(b, zu.timeSeparator...)
if t.Minute() < 10 {
@@ -517,13 +521,6 @@ func (zu *zu) FmtTimeMedium(t time.Time) string {
}
b = strconv.AppendInt(b, int64(t.Second()), 10)
- b = append(b, []byte{0x20}...)
-
- if t.Hour() < 12 {
- b = append(b, zu.periodsAbbreviated[0]...)
- } else {
- b = append(b, zu.periodsAbbreviated[1]...)
- }
return string(b)
}
@@ -533,13 +530,11 @@ func (zu *zu) FmtTimeLong(t time.Time) string {
b := make([]byte, 0, 32)
- h := t.Hour()
-
- if h > 12 {
- h -= 12
+ if t.Hour() < 10 {
+ b = append(b, '0')
}
- b = strconv.AppendInt(b, int64(h), 10)
+ b = strconv.AppendInt(b, int64(t.Hour()), 10)
b = append(b, zu.timeSeparator...)
if t.Minute() < 10 {
@@ -556,14 +551,6 @@ func (zu *zu) FmtTimeLong(t time.Time) string {
b = strconv.AppendInt(b, int64(t.Second()), 10)
b = append(b, []byte{0x20}...)
- if t.Hour() < 12 {
- b = append(b, zu.periodsAbbreviated[0]...)
- } else {
- b = append(b, zu.periodsAbbreviated[1]...)
- }
-
- b = append(b, []byte{0x20}...)
-
tz, _ := t.Zone()
b = append(b, tz...)
@@ -575,13 +562,11 @@ func (zu *zu) FmtTimeFull(t time.Time) string {
b := make([]byte, 0, 32)
- h := t.Hour()
-
- if h > 12 {
- h -= 12
+ if t.Hour() < 10 {
+ b = append(b, '0')
}
- b = strconv.AppendInt(b, int64(h), 10)
+ b = strconv.AppendInt(b, int64(t.Hour()), 10)
b = append(b, zu.timeSeparator...)
if t.Minute() < 10 {
@@ -598,14 +583,6 @@ func (zu *zu) FmtTimeFull(t time.Time) string {
b = strconv.AppendInt(b, int64(t.Second()), 10)
b = append(b, []byte{0x20}...)
- if t.Hour() < 12 {
- b = append(b, zu.periodsAbbreviated[0]...)
- } else {
- b = append(b, zu.periodsAbbreviated[1]...)
- }
-
- b = append(b, []byte{0x20}...)
-
tz, _ := t.Zone()
if btz, ok := zu.timezones[tz]; ok {