-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlookups.go
137 lines (127 loc) · 2.32 KB
/
lookups.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
package fuzzytime
// lookup.go contains lookup data (eg month names)
// TODO: look into CLDR - http://cldr.unicode.org/index
// provides locale-specific names and format patterns
// useful reference for month abbreviations:
// http://library.princeton.edu/departments/tsd/katmandu/reference/months.html
/*
dayLookup = {
'mon': 'mon', 'monday': 'mon',
'tue': 'tue', 'tuesday': 'tue',
'wed': 'wed', 'wednesday': 'wed',
'thu': 'thu', 'thursday': 'thu',
'fri': 'fri', 'friday': 'fri',
'sat': 'sat', 'saturday': 'sat',
'sun': 'sun', 'sunday': 'sun',
# es
'lunes': 'mon',
'martes': 'tue',
'miércoles': 'wed',
'jueves': 'thu',
'viernes': 'fri',
'sábado': 'sat',
'domingo': 'sun',
}
*/
var monthLookup = map[string]int{
"jan": 1,
"feb": 2,
"mar": 3,
"apr": 4,
"may": 5,
"jun": 6,
"jul": 7,
"aug": 8,
"sep": 9,
"oct": 10,
"nov": 11,
"dec": 12,
"january": 1,
"february": 2,
"march": 3,
"april": 4,
// "may": 5,
"june": 6,
"july": 7,
"august": 8,
"september": 9,
"october": 10,
"november": 11,
"december": 12,
"01": 1,
"02": 2,
"03": 3,
"04": 4,
"05": 5,
"06": 6,
"07": 7,
"08": 8,
"09": 9,
"10": 10,
"11": 11,
"12": 12,
"1": 1,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"9": 9,
// "10":10,
// "11":11,
// "12":12,
// es - full
"enero": 1,
"febrero": 2,
"marzo": 3,
"abril": 4,
"mayo": 5,
"junio": 6,
"julio": 7,
"agosto": 8,
"septiembre": 9,
"octubre": 10,
"noviembre": 11,
"diciembre": 12,
// es - abbreviations
//"enero": 1,
// "feb": 2,
//"marzo": 3,
"abr": 4,
//"mayo": 5,
// "jun": 6,
// "jul": 7,
//"agosto": 8,
// "sept": 9,
"set": 9,
// "oct": 10,
// "nov": 11,
"dic": 12,
// ru - full
"января": 1,
"январь": 1,
"февраля": 2,
"февраль": 2,
"марта": 3,
"март": 3,
"апреля": 4,
"апрель": 4,
"мая": 5,
"май": 5,
"июня": 6,
"июнь": 6,
"июля": 7,
"июль": 7,
"августа": 8,
"август": 8,
"сентября": 9,
"сентябрь": 9,
"октября": 10,
"октябрь": 10,
"ноября": 11,
"ноябрь": 11,
"декабря": 12,
"декабрь": 12,
}