From a812d5e66314815db26d0fc951ace9eece4c66c6 Mon Sep 17 00:00:00 2001 From: joeybloggs Date: Thu, 18 Aug 2016 09:49:48 -0400 Subject: Add FmtDateTime helper functions. --- zh_Hans/zh_Hans.go | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) (limited to 'zh_Hans') diff --git a/zh_Hans/zh_Hans.go b/zh_Hans/zh_Hans.go index 2def036a..693d5624 100644 --- a/zh_Hans/zh_Hans.go +++ b/zh_Hans/zh_Hans.go @@ -74,7 +74,7 @@ func New() locales.Translator { erasAbbreviated: [][]uint8{{0xe5, 0x85, 0xac, 0xe5, 0x85, 0x83, 0xe5, 0x89, 0x8d}, {0xe5, 0x85, 0xac, 0xe5, 0x85, 0x83}}, erasNarrow: [][]uint8{{0xe5, 0x85, 0xac, 0xe5, 0x85, 0x83, 0xe5, 0x89, 0x8d}, {0xe5, 0x85, 0xac, 0xe5, 0x85, 0x83}}, erasWide: [][]uint8{{0xe5, 0x85, 0xac, 0xe5, 0x85, 0x83, 0xe5, 0x89, 0x8d}, {0xe5, 0x85, 0xac, 0xe5, 0x85, 0x83}}, - timezones: map[string][]uint8{"WIB": {0xe5, 0x8d, 0xb0, 0xe5, 0xba, 0xa6, 0xe5, 0xb0, 0xbc, 0xe8, 0xa5, 0xbf, 0xe4, 0xba, 0x9a, 0xe8, 0xa5, 0xbf, 0xe9, 0x83, 0xa8, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "NZST": {0xe6, 0x96, 0xb0, 0xe8, 0xa5, 0xbf, 0xe5, 0x85, 0xb0, 0xe6, 0xa0, 0x87, 0xe5, 0x87, 0x86, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "CAT": {0xe4, 0xb8, 0xad, 0xe9, 0x83, 0xa8, 0xe9, 0x9d, 0x9e, 0xe6, 0xb4, 0xb2, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "COST": {0xe5, 0x93,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xe9, 0x82, 0xa3, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "SGT": {0xe6, 0x96, 0xb0, 0xe5, 0x8a, 0xa0, 0xe5, 0x9d, 0xa1, 0xe6, 0xa0, 0x87, 0xe5, 0x87, 0x86, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "BOT": {0xe7, 0x8e, 0xbb, 0xe5, 0x88, 0xa9, 0xe7, 0xbb, 0xb4, 0xe4, 0xba, 0x9a, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "JST": {0xe6, 0x97, 0xa5, 0xe6, 0x9c, 0xac, 0xe6, 0xa0, 0x87, 0xe5, 0x87, 0x86, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "TMST": {0xe5, 0x9c, 0x9f, 0xe5, 0xba, 0x93, 0xe6, 0x9b, 0xbc, 0xe6, 0x96, 0xaf, 0xe5, 0x9d, 0xa6, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "WESZ": {0xe8, 0xa5, 0xbf, 0xe6, 0xac, 0xa7, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}, "UYST": {0xe4, 0xb9, 0x8c, 0xe6, 0x8b, 0x89, 0xe5, 0x9c, 0xad, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x97, 0xb6, 0xe9, 0x97, 0xb4}}, } } @@ -403,8 +403,10 @@ func (zh *zh_Hans) FmtTimeShort(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, zh.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } @@ -432,14 +434,17 @@ func (zh *zh_Hans) FmtTimeMedium(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, zh.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } b = strconv.AppendInt(b, int64(t.Minute()), 10) b = append(b, zh.timeSeparator...) + if t.Second() < 10 { b = append(b, '0') } @@ -472,14 +477,17 @@ func (zh *zh_Hans) FmtTimeLong(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, zh.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } b = strconv.AppendInt(b, int64(t.Minute()), 10) b = append(b, zh.timeSeparator...) + if t.Second() < 10 { b = append(b, '0') } @@ -497,6 +505,7 @@ func (zh *zh_Hans) FmtTimeFull(t time.Time) []byte { b := make([]byte, 0, 32) tz, _ := t.Zone() + if btz, ok := zh.timezones[tz]; ok { b = append(b, btz...) } else { @@ -516,14 +525,17 @@ func (zh *zh_Hans) FmtTimeFull(t time.Time) []byte { if h > 12 { h -= 12 } + b = strconv.AppendInt(b, int64(h), 10) b = append(b, zh.timeSeparator...) + if t.Minute() < 10 { b = append(b, '0') } b = strconv.AppendInt(b, int64(t.Minute()), 10) b = append(b, zh.timeSeparator...) + if t.Second() < 10 { b = append(b, '0') } @@ -532,3 +544,51 @@ func (zh *zh_Hans) FmtTimeFull(t time.Time) []byte { return b } + +// FmtDateTimeShort returns the short date & time representation of 't' for 'zh_Hans' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (zh *zh_Hans) FmtDateTimeShort(t time.Time) []byte { + + b := zh.FmtDateShort(t) + b = append(b, ' ') + b = append(b, zh.FmtTimeShort(t)...) + + return b +} + +// FmtDateTimeMedium returns the medium date & time representation of 't' for 'zh_Hans' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (zh *zh_Hans) FmtDateTimeMedium(t time.Time) []byte { + + b := zh.FmtDateMedium(t) + b = append(b, ' ') + b = append(b, zh.FmtTimeMedium(t)...) + + return b +} + +// FmtDateTimeLong returns the long date & time representation of 't' for 'zh_Hans' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (zh *zh_Hans) FmtDateTimeLong(t time.Time) []byte { + + b := zh.FmtDateLong(t) + b = append(b, ' ') + b = append(b, zh.FmtTimeLong(t)...) + + return b +} + +// FmtDateTimeFull returns the full date & time representation of 't' for 'zh_Hans' +// returned as a []byte just in case the caller wishes to add more and can help +// avoid allocations; otherwise just cast as string. +func (zh *zh_Hans) FmtDateTimeFull(t time.Time) []byte { + + b := zh.FmtDateFull(t) + b = append(b, ' ') + b = append(b, zh.FmtTimeFull(t)...) + + return b +} -- cgit v1.2.3