-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemocritus_timezones_docs.json
171 lines (171 loc) · 7.14 KB
/
democritus_timezones_docs.json
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"functions": [
{
"name": "pytz_timezone_object",
"docstring": "Create a pytz timezone object for the given timezone_name.",
"signature": "(timezone_name: str)",
"examples": [],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "pytz_country_names",
"docstring": "Get a dictionary with countries's ISO 3166 country code as keys and the country name as the value.",
"signature": "()",
"examples": [],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "pytz_country_timezones",
"docstring": "Get a dictionary with countries's names as keys and the timezones as values.",
"signature": "()",
"examples": [],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "timezones_names",
"docstring": "Get a list of all timezones.",
"signature": "()",
"examples": [],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "timezone_utc_offset",
"docstring": "Find how many hours the given timezone is off from UTC.",
"signature": "(timezone_name: str, date)",
"examples": [
"def test_timezone_utc_offset_docs_1():\n utc_offset = timezone_utc_offset('America/New_York', EXAMPLE_DATE_EST)\n assert utc_offset == -5.0\n\n # during the summer, EST switches to EDT and becomes four hours behind UTC\n utc_offset = timezone_utc_offset('America/New_York', EXAMPLE_DATE_EDT)\n assert utc_offset == -4.0\n\n utc_offset = timezone_utc_offset('Africa/Mbabane', EXAMPLE_DATE)\n assert utc_offset == 2.0"
],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "timezone_abbreviation",
"docstring": "Find the abbreviation for the given timezone_name.",
"signature": "(timezone_name: str, date)",
"examples": [
"def test_timezone_abbreviation_docs_1():\n timezones_abbreviation = timezone_abbreviation('Africa/Mbabane', EXAMPLE_DATE)\n assert timezones_abbreviation == 'SAST'\n\n timezones_abbreviation = timezone_abbreviation('America/New_York', EXAMPLE_DATE_EST)\n assert timezones_abbreviation == 'EST'\n\n timezones_abbreviation = timezone_abbreviation('America/New_York', EXAMPLE_DATE_EDT)\n assert timezones_abbreviation == 'EDT'"
],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "country_timezone_abbreviation",
"docstring": "Find the abbreviation for the given country_name.",
"signature": "(country_name: str, date)",
"examples": [
"def test_country_timezone_abbreviation_docs_1():\n timezones_abbreviation = country_timezone_abbreviation('Eswatini (Swaziland)', EXAMPLE_DATE)\n assert timezones_abbreviation == ['SAST']\n\n timezones_abbreviation = country_timezone_abbreviation('United States', EXAMPLE_DATE)\n assert sorted(timezones_abbreviation) == ['AKST', 'CST', 'EST', 'HST', 'MST', 'PST']"
],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "country_code_timezone_abbreviation",
"docstring": "Find the abbreviation for the given iso_3166_country_code.",
"signature": "(iso_3166_country_code: str)",
"examples": [],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "country_code_timezones",
"docstring": "Find the timezones for the country with the given iso_3166_country_code.",
"signature": "(iso_3166_country_code)",
"examples": [
"def test_country_code_timezones_docs_1():\n timezones = country_code_timezones('SZ')\n assert timezones == ['Africa/Mbabane']"
],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "country_timezones",
"docstring": "Find the timezones for the given country.",
"signature": "(country_name)",
"examples": [
"def test_country_timezones_docs_1():\n timezones = country_timezones('Eswatini (Swaziland)')\n assert timezones == ['Africa/Mbabane']"
],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
},
{
"name": "timezone_countries",
"docstring": "Find countries in the given timezone_name.",
"signature": "(timezone_name)",
"examples": [
"def test_timezone_countries_docs_1():\n countries = timezone_countries('Africa/Mbabane')\n assert countries == ['Eswatini (Swaziland)']"
],
"changes": [
{
"date": "2021-01-27",
"type": "addition",
"note": "Function added to democritus_timezones module."
}
],
"exceptions": []
}
],
"module": "democritus_timezones"
}