diff options
author | Dean Karn <Dean.Karn@metricaid.com> | 2016-09-11 23:22:25 +0300 |
---|---|---|
committer | Dean Karn <Dean.Karn@metricaid.com> | 2016-09-11 23:22:25 +0300 |
commit | a75cdd71617f0998215f56f506ec9aabead36101 (patch) | |
tree | 5e2057a519c8cd8060a923888895c6285f74532b /ms_SG/ms_SG.go | |
parent | c83f384137b60783b605590315e9791a34829443 (diff) |
a few more low level optimizationsbytes-to-string
Diffstat (limited to 'ms_SG/ms_SG.go')
-rw-r--r-- | ms_SG/ms_SG.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ms_SG/ms_SG.go b/ms_SG/ms_SG.go index 6f6ab20f..68a60664 100644 --- a/ms_SG/ms_SG.go +++ b/ms_SG/ms_SG.go @@ -71,7 +71,7 @@ func New() locales.Translator { erasAbbreviated: []string{"S.M.", "TM"}, erasNarrow: []string{"", ""}, erasWide: []string{"S.M.", "TM"}, - timezones: map[string]string{"ACWST": "Waktu Piawai Barat Tengah Australia", "WESZ": "Waktu Musim Panas Eropah Barat", "HNT": "Waktu Piawai Newfoundland", "ARST": "Waktu Musim Panas Argentina", "MEZ": "Waktu Piawai Eropah Tengah", "CLT": "Waktu Piawai Chile", "EDT": "Waktu Siang Timur", "BT": "Waktu Bhutan", "ACDT": "Waktu Siang Australia Tengah", "ACWDT": "Waktu Siang Barat Tengah Australia", "JDT": "Waktu Siang Jepun", "ADT": "Waktu Siang Atlantik", "MYT": "Waktu Malaysia", "UYT": "Waktu Piawai Uruguay", "BOT": "Waktu Bolivia", "HKT": "Waktu Piawai Hong Kong", "AEST": "Waktu Piawai Timur Australia", "MST": "Waktu Piawai Pergunungan", "WART": "Waktu Piawai Argentina Barat", "WIT": "Waktu Indonesia Timur", "AKST": "Waktu Piawai Alaska", "EST": "Waktu Piawai Timur", "AKDT": "Waktu Siang Alaska", "GYT": "Waktu Guyana", "OESZ": "Waktu Musim Panas Eropah Timur", "AEDT": "Waktu Siang Australia Timur", "NZST": "Waktu Piawai New Zealand", "∅∅∅": "Waktu Musim Panas Brasilia", "MESZ": "Waktu Musim Panas Eropah Tengah", "EAT": "Waktu Afrika Timur", "CHAST": "Waktu Piawai Chatham", "PDT": "Waktu Siang Pasifik", "CLST": "Waktu Musim Panas Chile", "CST": "Waktu Piawai Pusat", "ART": "Waktu Piawai Argentina", "GMT": "Waktu Min Greenwich", "MDT": "Waktu Hari Siang Pergunungan", "TMST": "Waktu Musim Panas Turkmenistan", "LHST": "Waktu Piawai Lord Howe", "CAT": "Waktu Afrika Tengah", "UYST": "Waktu Musim Panas Uruguay", "VET": "Waktu Venezuela", "COST": "Waktu Musim Panas Colombia", "HAST": "Waktu Piawai Hawaii-Aleutian", "CHADT": "Waktu Siang Chatham", "NZDT": "Waktu Siang New Zealand", "WITA": "Waktu Indonesia Tengah", "SRT": "Waktu Suriname", "WEZ": "Waktu Piawai Eropah Barat", "ACST": "Waktu Piawai Australia Tengah", "SGT": "Waktu Piawai Singapura", "SAST": "Waktu Piawai Afrika Selatan", "WAST": "Waktu Musim Panas Afrika Barat", "ECT": "Waktu Ecuador", "IST": "Waktu Piawai India", "AWST": "Waktu Piawai Australia Barat", "LHDT": "Waktu Siang Lord Howe", "WARST": "Waktu Musim Panas Argentina Barat", "AST": "Waktu Piawai Atlantik", "AWDT": "Waktu Siang Australia Barat", "HKST": "Waktu Musim Panas Hong Kong", "TMT": "Waktu Piawai Turkmenistan", "OEZ": "Waktu Piawai Eropah Timur", "JST": "Waktu Piawai Jepun", "WIB": "Waktu Indonesia Barat", "PST": "Waktu Piawai Pasifik", "ChST": "Waktu Piawai Chamorro", "WAT": "Waktu Piawai Afrika Barat", "CDT": "Waktu Siang Tengah", "HAT": "Waktu Siang Newfoundland", "GFT": "Waktu Guyana Perancis", "COT": "Waktu Piawai Colombia", "HADT": "Waktu Siang Hawaii-Aleutian"}, + timezones: map[string]string{"OEZ": "Waktu Piawai Eropah Timur", "WITA": "Waktu Indonesia Tengah", "AKST": "Waktu Piawai Alaska", "LHST": "Waktu Piawai Lord Howe", "MYT": "Waktu Malaysia", "MEZ": "Waktu Piawai Eropah Tengah", "UYST": "Waktu Musim Panas Uruguay", "SGT": "Waktu Piawai Singapura", "WIB": "Waktu Indonesia Barat", "AKDT": "Waktu Siang Alaska", "PDT": "Waktu Siang Pasifik", "ADT": "Waktu Siang Atlantik", "HAT": "Waktu Siang Newfoundland", "TMT": "Waktu Piawai Turkmenistan", "JDT": "Waktu Siang Jepun", "AEST": "Waktu Piawai Timur Australia", "OESZ": "Waktu Musim Panas Eropah Timur", "CHAST": "Waktu Piawai Chatham", "CLST": "Waktu Musim Panas Chile", "∅∅∅": "∅∅∅", "MST": "MST", "AWST": "Waktu Piawai Australia Barat", "BOT": "Waktu Bolivia", "EDT": "Waktu Siang Timur", "HKT": "Waktu Piawai Hong Kong", "HKST": "Waktu Musim Panas Hong Kong", "HNT": "Waktu Piawai Newfoundland", "LHDT": "Waktu Siang Lord Howe", "JST": "Waktu Piawai Jepun", "EST": "Waktu Piawai Timur", "BT": "Waktu Bhutan", "GFT": "Waktu Guyana Perancis", "EAT": "Waktu Afrika Timur", "PST": "Waktu Piawai Pasifik", "COST": "Waktu Musim Panas Colombia", "GMT": "Waktu Min Greenwich", "WAST": "Waktu Musim Panas Afrika Barat", "WEZ": "Waktu Piawai Eropah Barat", "AST": "Waktu Piawai Atlantik", "WART": "Waktu Piawai Argentina Barat", "ACST": "Waktu Piawai Australia Tengah", "GYT": "Waktu Guyana", "CST": "Waktu Piawai Pusat", "NZST": "Waktu Piawai New Zealand", "NZDT": "Waktu Siang New Zealand", "WAT": "Waktu Piawai Afrika Barat", "VET": "Waktu Venezuela", "ACWST": "Waktu Piawai Barat Tengah Australia", "ChST": "Waktu Piawai Chamorro", "CHADT": "Waktu Siang Chatham", "ECT": "Waktu Ecuador", "WIT": "Waktu Indonesia Timur", "ACDT": "Waktu Siang Australia Tengah", "TMST": "Waktu Musim Panas Turkmenistan", "WESZ": "Waktu Musim Panas Eropah Barat", "HADT": "Waktu Siang Hawaii-Aleutian", "ARST": "Waktu Musim Panas Argentina", "CDT": "Waktu Siang Tengah", "UYT": "Waktu Piawai Uruguay", "ACWDT": "Waktu Siang Barat Tengah Australia", "AEDT": "Waktu Siang Australia Timur", "WARST": "Waktu Musim Panas Argentina Barat", "MDT": "MDT", "ART": "Waktu Piawai Argentina", "CAT": "Waktu Afrika Tengah", "HAST": "Waktu Piawai Hawaii-Aleutian", "IST": "Waktu Piawai India", "AWDT": "Waktu Siang Australia Barat", "CLT": "Waktu Piawai Chile", "SAST": "Waktu Piawai Afrika Selatan", "MESZ": "Waktu Musim Panas Eropah Tengah", "COT": "Waktu Piawai Colombia", "SRT": "Waktu Suriname"}, } } @@ -232,7 +232,7 @@ func (ms *ms_SG) FmtNumber(num float64, v uint64) string { // NOTE: 'num' passed into FmtPercent is assumed to be in percent already func (ms *ms_SG) FmtPercent(num float64, v uint64) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) - l := len(s) + len(ms.decimal) + l := len(s) + 3 b := make([]byte, 0, l) for i := len(s) - 1; i >= 0; i-- { |