diff options
author | joeybloggs <Dean.Karn@gmail.com> | 2016-08-18 16:49:48 +0300 |
---|---|---|
committer | joeybloggs <Dean.Karn@gmail.com> | 2016-08-18 16:49:48 +0300 |
commit | a812d5e66314815db26d0fc951ace9eece4c66c6 (patch) | |
tree | b5076f7b9b53a3defc785be36cd2ae73d9550526 /sq/sq.go | |
parent | 4d5203f4ffe923766592cb84db404040cff387e9 (diff) |
Add FmtDateTime helper functions.
Diffstat (limited to 'sq/sq.go')
-rw-r--r-- | sq/sq.go | 62 |
1 files changed, 61 insertions, 1 deletions
@@ -75,7 +75,7 @@ func New() locales.Translator { erasAbbreviated: [][]uint8{{0x70, 0x2e, 0x65, 0x2e, 0x72, 0x2e}, {0x65, 0x2e, 0x72, 0x2e}}, erasNarrow: [][]uint8{{0x70, 0x2e, 0x65, 0x2e, 0x72, 0x2e}, {0x65, 0x2e, 0x72, 0x2e}}, erasWide: [][]uint8{{0x70, 0x61, 0x72, 0x61, 0x20, 0x65, 0x72, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x72, 0x65}, {0x65, 0x72, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x72, 0x65}}, - timezones: map[string][]uint8{"LHST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4c, 0x6f, 0x72, 0x64, 0x2d, 0x48, 0x6f, 0x75, 0x69, 0x74}, "WART": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "AKST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x6c, 0x61, 0x73, 0x6b, 0xc3, 0xab, 0x73}, "BOT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x42, 0x6f, 0x6c, 0x69, 0x76, 0x69, 0x73, 0xc3, 0xab}, "COST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x73, 0xc3, 0xab}, "CAT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "CHAST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x61, 0x74, 0x61, 0x6d, 0x69, 0x74}, "AWDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "WEZ": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "WITA": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "PDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x20, 0x65, 0x20, 0x42, 0x72, 0x65, 0x67, 0x75, 0x74, 0x20, 0x74, 0xc3, 0xab, 0x20, 0x50, 0x61, 0x71, 0xc3, 0xab, 0x73, 0x6f, 0x72, 0x69, 0x74}, "SGT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x53, 0x69, 0x6e, 0x67, 0x61, 0x70, 0x6f, 0x72, 0x69, 0x74}, "HAT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4e, 0x6a, 0x75, 0x66, 0x61, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x6e, 0x64, 0x69, 0x74, 0x20, 0x5b, 0x54, 0x6f, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65, 0x5d}, "ACDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "CHADT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x61, 0x74, 0x61, 0x6d, 0x69, 0x74}, "JDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x73, 0xc3, 0xab}, "ACWDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x6f, 0x2d, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "TMST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x69, 0x74}, "CST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "CDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "GYT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x47, 0x75, 0x61, 0x6a, 0x61, 0x6e, 0xc3, 0xab, 0x73}, "AKDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x6c, 0x73, 0x61, 0x73, 0x6b, 0xc3, 0xab, 0x73}, "∅∅∅": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x6a, 0x6b, 0x72, 0x69, 0x74, 0x20, 0x5b, 0x41, 0x6b, 0x6f, 0x5d}, "EDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "EST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "EAT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "HADT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x49, 0x73, 0x68, 0x75, 0x6a, 0x76, 0x65, 0x20, 0x48, 0x61, 0x75, 0x61, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x69, 0x61, 0x6e}, "MST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4d, 0x61, 0x6b, 0x61, 0x6f, 0x73}, "IST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x69, 0x73, 0xc3, 0xab}, "WAT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "BT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x42, 0x75, 0x74, 0x61, 0x6e, 0x69, 0x74}, "SRT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x53, 0x75, 0x72, 0x69, 0x6e, 0x61, 0x6d, 0x69, 0x74}, "MYT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x4d, 0x61, 0x6c, 0x61, 0x6a, 0x7a, 0x69, 0x73, 0xc3, 0xab}, "CLST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x69, 0x6c, 0x69, 0x74}, "SAST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x4a, 0x75, 0x67, 0x6f, 0x72, 0x65}, "HNT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4e, 0x6a, 0x75, 0x66, 0x61, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x6e, 0x64, 0x69, 0x74, 0x20, 0x5b, 0x54, 0x6f, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65, 0x5d}, "MESZ": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "ARST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73}, "PST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x20, 0x65, 0x20, 0x42, 0x72, 0x65, 0x67, 0x75, 0x74, 0x20, 0x74, 0xc3, 0xab, 0x20, 0x50, 0x61, 0x71, 0xc3, 0xab, 0x73, 0x6f, 0x72, 0x69, 0x74}, "VET": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x56, 0x65, 0x6e, 0x65, 0x7a, 0x75, 0x65, 0x6c, 0xc3, 0xab, 0x73}, "OEZ": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "AEST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "JST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x73, 0xc3, 0xab}, "UYST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x69, 0x74}, "OESZ": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "WARST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "GFT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x47, 0x75, 0x61, 0x6a, 0x61, 0x6e, 0xc3, 0xab, 0x73, 0x20, 0x46, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x7a, 0x65}, "TMT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x69, 0x74}, "AST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x75, 0x74}, "GMT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x4d, 0x65, 0x72, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x69, 0x74, 0x20, 0x74, 0xc3, 0xab, 0x20, 0x47, 0x72, 0x69, 0x6e, 0x75, 0x69, 0xc3, 0xa7, 0x69, 0x74}, "ACST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "LHDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4c, 0x6f, 0x72, 0x64, 0x2d, 0x48, 0x6f, 0x75, 0x69, 0x74}, "HKST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x48, 0x6f, 0x6e, 0x67, 0x2d, 0x4b, 0x6f, 0x6e, 0x67, 0x75, 0x74}, "ACWST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x6f, 0x2d, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "WIT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "AEDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "ADT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x75, 0x74}, "WAST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "MEZ": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "COT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x73, 0xc3, 0xab}, "CLT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x69, 0x6c, 0x69, 0x74}, "HAST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x49, 0x73, 0x68, 0x75, 0x6a, 0x76, 0x65, 0x20, 0x48, 0x61, 0x75, 0x61, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x69, 0x61, 0x6e}, "NZDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65}, "UYT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x69, 0x74}, "WIB": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "WESZ": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "AWST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "MDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4d, 0x61, 0x6b, 0x61, 0x6f, 0x73}, "ECT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x45, 0x6b, 0x75, 0x61, 0x64, 0x6f, 0x72, 0x69, 0x74}, "NZST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65}, "ChST": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x4b, 0x61, 0x6d, 0x6f, 0x72, 0x72, 0x6f, 0x73}, "ART": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73}, "HKT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x48, 0x6f, 0x6e, 0x67, 0x2d, 0x4b, 0x6f, 0x6e, 0x67, 0x75, 0x74}}, + timezones: map[string][]uint8{"WIB": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "PST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x20, 0x65, 0x20, 0x42, 0x72, 0x65, 0x67, 0x75, 0x74, 0x20, 0x74, 0xc3, 0xab, 0x20, 0x50, 0x61, 0x71, 0xc3, 0xab, 0x73, 0x6f, 0x72, 0x69, 0x74}, "JST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x73, 0xc3, 0xab}, "CST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "UYST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x69, 0x74}, "HAT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4e, 0x6a, 0x75, 0x66, 0x61, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x6e, 0x64, 0x69, 0x74, 0x20, 0x5b, 0x54, 0x6f, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65, 0x5d}, "CLT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x69, 0x6c, 0x69, 0x74}, "CLST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x69, 0x6c, 0x69, 0x74}, "EST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "PDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x20, 0x65, 0x20, 0x42, 0x72, 0x65, 0x67, 0x75, 0x74, 0x20, 0x74, 0xc3, 0xab, 0x20, 0x50, 0x61, 0x71, 0xc3, 0xab, 0x73, 0x6f, 0x72, 0x69, 0x74}, "ART": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73}, "BT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x42, 0x75, 0x74, 0x61, 0x6e, 0x69, 0x74}, "EDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "WITA": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "WESZ": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "GFT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x47, 0x75, 0x61, 0x6a, 0x61, 0x6e, 0xc3, 0xab, 0x73, 0x20, 0x46, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x7a, 0x65}, "HNT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4e, 0x6a, 0x75, 0x66, 0x61, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x6e, 0x64, 0x69, 0x74, 0x20, 0x5b, 0x54, 0x6f, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65, 0x5d}, "MEZ": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "CDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x53, 0x48, 0x42, 0x41, 0x2d, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "HAST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x49, 0x73, 0x68, 0x75, 0x6a, 0x76, 0x65, 0x20, 0x48, 0x61, 0x75, 0x61, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x69, 0x61, 0x6e}, "WAST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "AEST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "CHAST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x61, 0x74, 0x61, 0x6d, 0x69, 0x74}, "SRT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x53, 0x75, 0x72, 0x69, 0x6e, 0x61, 0x6d, 0x69, 0x74}, "UYT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x55, 0x72, 0x75, 0x67, 0x75, 0x61, 0x69, 0x74}, "GMT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x4d, 0x65, 0x72, 0x69, 0x64, 0x69, 0x61, 0x6e, 0x69, 0x74, 0x20, 0x74, 0xc3, 0xab, 0x20, 0x47, 0x72, 0x69, 0x6e, 0x75, 0x69, 0xc3, 0xa7, 0x69, 0x74}, "AWDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "ARST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73}, "TMST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x69, 0x74}, "ACWST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x6f, 0x2d, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "ACWDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x6f, 0x2d, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "OEZ": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "HKST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x48, 0x6f, 0x6e, 0x67, 0x2d, 0x4b, 0x6f, 0x6e, 0x67, 0x75, 0x74}, "WIT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x6f, 0x6e, 0x65, 0x7a, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "OESZ": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "SGT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x53, 0x69, 0x6e, 0x67, 0x61, 0x70, 0x6f, 0x72, 0x69, 0x74}, "ECT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x45, 0x6b, 0x75, 0x61, 0x64, 0x6f, 0x72, 0x69, 0x74}, "VET": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x56, 0x65, 0x6e, 0x65, 0x7a, 0x75, 0x65, 0x6c, 0xc3, 0xab, 0x73}, "HKT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x48, 0x6f, 0x6e, 0x67, 0x2d, 0x4b, 0x6f, 0x6e, 0x67, 0x75, 0x74}, "ACST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "AKDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x6c, 0x73, 0x61, 0x73, 0x6b, 0xc3, 0xab, 0x73}, "ChST": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x4b, 0x61, 0x6d, 0x6f, 0x72, 0x72, 0x6f, 0x73}, "BOT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x42, 0x6f, 0x6c, 0x69, 0x76, 0x69, 0x73, 0xc3, 0xab}, "JDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4a, 0x61, 0x70, 0x6f, 0x6e, 0x69, 0x73, 0xc3, 0xab}, "WARST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "GYT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x47, 0x75, 0x61, 0x6a, 0x61, 0x6e, 0xc3, 0xab, 0x73}, "HADT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x49, 0x73, 0x68, 0x75, 0x6a, 0x76, 0x65, 0x20, 0x48, 0x61, 0x75, 0x61, 0x69, 0x2d, 0x41, 0x6c, 0x65, 0x75, 0x74, 0x69, 0x61, 0x6e}, "CHADT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x61, 0x74, 0x61, 0x6d, 0x69, 0x74}, "EAT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "ACDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "ADT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x75, 0x74}, "MDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x20, 0x65, 0x20, 0x42, 0x72, 0x65, 0x7a, 0x69, 0x74, 0x20, 0x4d, 0x61, 0x6c, 0x6f, 0x72}, "TMT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x54, 0x75, 0x72, 0x6b, 0x6d, 0x65, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x69, 0x74}, "NZDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65}, "COST": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x73, 0xc3, 0xab}, "AEDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x4c, 0x69, 0x6e, 0x64, 0x6f, 0x72, 0x65}, "AKST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x6c, 0x61, 0x73, 0x6b, 0xc3, 0xab, 0x73}, "LHST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4c, 0x6f, 0x72, 0x64, 0x2d, 0x48, 0x6f, 0x75, 0x69, 0x74}, "COT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x4b, 0x6f, 0x6c, 0x75, 0x6d, 0x62, 0x69, 0x73, 0xc3, 0xab}, "AST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x74, 0x6c, 0x61, 0x6e, 0x74, 0x69, 0x6b, 0x75, 0x74}, "AWST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x75, 0x73, 0x74, 0x72, 0x61, 0x6c, 0x69, 0x73, 0xc3, 0xab, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "CAT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "WEZ": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "WAT": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "SAST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x66, 0x72, 0x69, 0x6b, 0xc3, 0xab, 0x73, 0x20, 0x4a, 0x75, 0x67, 0x6f, 0x72, 0x65}, "WART": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x41, 0x72, 0x67, 0x6a, 0x65, 0x6e, 0x74, 0x69, 0x6e, 0xc3, 0xab, 0x73, 0x20, 0x50, 0x65, 0x72, 0xc3, 0xab, 0x6e, 0x64, 0x69, 0x6d, 0x6f, 0x72, 0x65}, "NZST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x5a, 0x65, 0x6c, 0x61, 0x6e, 0x64, 0xc3, 0xab, 0x73, 0x20, 0x73, 0xc3, 0xab, 0x20, 0x52, 0x65}, "MYT": {0x4f, 0x72, 0x61, 0x20, 0x65, 0x20, 0x4d, 0x61, 0x6c, 0x61, 0x6a, 0x7a, 0x69, 0x73, 0xc3, 0xab}, "LHDT": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x4c, 0x6f, 0x72, 0x64, 0x2d, 0x48, 0x6f, 0x75, 0x69, 0x74}, "IST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x65, 0x20, 0x49, 0x6e, 0x64, 0x69, 0x73, 0xc3, 0xab}, "MST": {0x4f, 0x72, 0x61, 0x20, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x65, 0x20, 0x61, 0x6d, 0x65, 0x72, 0x69, 0x6b, 0x61, 0x6e, 0x65, 0x20, 0x65, 0x20, 0x42, 0x72, 0x65, 0x7a, 0x69, 0x74, 0x20, 0x4d, 0x61, 0x6c, 0x6f, 0x72}, "MESZ": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x75, 0x72, 0x6f, 0x70, 0xc3, 0xab, 0x73, 0x20, 0x51, 0x65, 0x6e, 0x64, 0x72, 0x6f, 0x72, 0x65}, "∅∅∅": {0x4f, 0x72, 0x61, 0x20, 0x76, 0x65, 0x72, 0x6f, 0x72, 0x65, 0x20, 0x65, 0x20, 0x45, 0x6a, 0x6b, 0x72, 0x69, 0x74, 0x20, 0x5b, 0x41, 0x6b, 0x6f, 0x5d}}, } } @@ -434,8 +434,10 @@ func (sq *sq) FmtTimeShort(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, sq.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } @@ -464,14 +466,17 @@ func (sq *sq) FmtTimeMedium(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, sq.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } b = strconv.AppendInt(b, int64(t.Minute()), 10) b = append(b, sq.timeSeparator...) + if t.Second() < 10 { b = append(b, '0') } @@ -500,14 +505,17 @@ func (sq *sq) FmtTimeLong(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, sq.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } b = strconv.AppendInt(b, int64(t.Minute()), 10) b = append(b, sq.timeSeparator...) + if t.Second() < 10 { b = append(b, '0') } @@ -541,14 +549,17 @@ func (sq *sq) FmtTimeFull(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, sq.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } b = strconv.AppendInt(b, int64(t.Minute()), 10) b = append(b, sq.timeSeparator...) + if t.Second() < 10 { b = append(b, '0') } @@ -565,6 +576,7 @@ func (sq *sq) FmtTimeFull(t time.Time) []byte { b = append(b, []byte{0x2c, 0x20}...) tz, _ := t.Zone() + if btz, ok := sq.timezones[tz]; ok { b = append(b, btz...) } else { @@ -573,3 +585,51 @@ func (sq *sq) FmtTimeFull(t time.Time) []byte { return b } + +// FmtDateTimeShort returns the short date & time representation of 't' for 'sq' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (sq *sq) FmtDateTimeShort(t time.Time) []byte { + + b := sq.FmtDateShort(t) + b = append(b, ' ') + b = append(b, sq.FmtTimeShort(t)...) + + return b +} + +// FmtDateTimeMedium returns the medium date & time representation of 't' for 'sq' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (sq *sq) FmtDateTimeMedium(t time.Time) []byte { + + b := sq.FmtDateMedium(t) + b = append(b, ' ') + b = append(b, sq.FmtTimeMedium(t)...) + + return b +} + +// FmtDateTimeLong returns the long date & time representation of 't' for 'sq' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (sq *sq) FmtDateTimeLong(t time.Time) []byte { + + b := sq.FmtDateLong(t) + b = append(b, ' ') + b = append(b, sq.FmtTimeLong(t)...) + + return b +} + +// FmtDateTimeFull returns the full date & time representation of 't' for 'sq' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (sq *sq) FmtDateTimeFull(t time.Time) []byte { + + b := sq.FmtDateFull(t) + b = append(b, ' ') + b = append(b, sq.FmtTimeFull(t)...) + + return b +} |