diff options
| author | Shulhan <ms@kilabit.info> | 2019-02-01 11:32:34 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2019-02-05 07:48:52 +0700 |
| commit | 930b8e7bdeb7b4909905f3185647d8d64d89ebbf (patch) | |
| tree | 623956d90d0e33b85bc23f97ccc93bf15b1950e9 /lib/time/time.go | |
| parent | 45a23e05d85eac33e1a4b44c0888be5d91a73cdb (diff) | |
| download | pakakeh.go-930b8e7bdeb7b4909905f3185647d8d64d89ebbf.tar.xz | |
lib/email: new package for working with Internet Message Format
This package provide library for parsing email message format as
specified in RFC 5322.
Diffstat (limited to 'lib/time/time.go')
| -rw-r--r-- | lib/time/time.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/time/time.go b/lib/time/time.go index 63d359b8..4a88f828 100644 --- a/lib/time/time.go +++ b/lib/time/time.go @@ -4,3 +4,32 @@ // Package time provide a library for working with time. package time + +import ( + "time" +) + +var ( + ShortDayNames = []string{ + "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", + } + + // + // ShortMonths provide mapping between text of month, in English, + // short format to their time.Month value + // + ShortMonths = map[string]time.Month{ + "Jan": time.January, + "Feb": time.February, + "Mar": time.March, + "Apr": time.April, + "May": time.May, + "Jun": time.June, + "Jul": time.July, + "Aug": time.August, + "Sep": time.September, + "Oct": time.October, + "Nov": time.November, + "Dec": time.December, + } +) |
