Repository navigation
Expand file tree
/
Copy pathdates.pyi
More file actions
246 lines (221 loc) · 6.68 KB
/
Copy pathdates.pyi
File metadata and controls
246 lines (221 loc) · 6.68 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
import datetime
from .units import ConversionInterface
import numpy as np
from dateutil import rrule
from .ticker import Formatter, Locator
UTC: datetime.timezone = ...
EPOCH_OFFSET: float = ...
JULIAN_OFFSET: float = ...
MICROSECONDLY: int = ...
HOURS_PER_DAY: int = ...
MIN_PER_HOUR: int = ...
SEC_PER_MIN: int = ...
MONTHS_PER_YEAR: int = ...
DAYS_PER_WEEK: int = ...
DAYS_PER_MONTH: int = ...
DAYS_PER_YEAR: int = ...
MINUTES_PER_DAY: int = ...
SEC_PER_HOUR: int = ...
SEC_PER_DAY: int = ...
SEC_PER_WEEK: int = ...
MUSECONDS_PER_DAY: int = ...
MO: rrule.weekday = ...
TU: rrule.weekday = ...
WE: rrule.weekday = ...
TH: rrule.weekday = ...
FR: rrule.weekday = ...
SA: rrule.weekday = ...
SU: rrule.weekday = ...
WEEKDAYS: tuple[rrule.weekday] = ...
YEARLY: int = ...
MONTHLY: int = ...
WEEKLY: int = ...
DAILY: int = ...
HOURLY: int = ...
MINUTELY: int = ...
SECONDLY: int = ...
def set_epoch(epoch: str): ...
def get_epoch() -> str: ...
def datestr2num(d: str, default: datetime.datetime = ...): ...
def date2num(d: datetime.datetime | np.datetime64) -> float: ...
def julian2num(j: float) -> float: ...
def num2julian(n: float) -> float: ...
def num2date(x: float, tz: str | datetime.tzinfo = ...) -> datetime.datetime: ...
def num2timedelta(x) -> tuple[datetime.timedelta, list[datetime.timedelta]]: ...
def drange(
dstart: datetime.datetime | datetime.date,
dend: datetime.datetime | datetime.date,
delta: datetime.timedelta,
) -> np.ndarray: ...
class DateFormatter(Formatter):
def __init__(
self, fmt: str, tz: str | datetime.tzinfo = ..., *, usetex: bool = ...
) -> None: ...
def __call__(self, x, pos=...): ...
def set_tzinfo(self, tz: str | datetime.tzinfo): ...
class ConciseDateFormatter(Formatter):
formats: list[str] = ...
offset_formats: list[str] = ...
zero_formats: list[str] = ...
def __init__(
self,
locator: Locator,
tz: str | datetime.tzinfo = ...,
formats: list[str] = ...,
offset_formats: list[str] = ...,
zero_formats: list[str] = ...,
show_offset: bool = ...,
*,
usetex: bool = ...
) -> None: ...
def __call__(self, x, pos=...): ...
def format_ticks(self, values)-> None: ...
def get_offset(self): ...
def format_data_short(self, value): ...
class AutoDateFormatter(Formatter):
def __init__(
self,
locator: Locator,
tz: str | datetime.tzinfo = ...,
defaultfmt: str = ...,
*,
usetex: bool = ...
) -> None: ...
def __call__(self, x, pos=...): ...
class rrulewrapper:
def __init__(
self, freq: int, tzinfo: datetime.tzinfo | None = ..., **kwargs
) -> None: ...
def set(self, **kwargs)-> None: ...
def __getattr__(self, name): ...
def __setstate__(self, state)-> None: ...
class DateLocator(Locator):
hms0d = ...
def __init__(self, tz: str | datetime.tzinfo = ...) -> None: ...
def set_tzinfo(self, tz: str | datetime.tzinfo)-> None: ...
def datalim_to_dt(self): ...
def viewlim_to_dt(self): ...
def nonsingular(self, vmin, vmax): ...
class RRuleLocator(DateLocator):
def __init__(self, o, tz: str | datetime.tzinfo = ...) -> None: ...
def __call__(self): ...
def tick_values(self, vmin, vmax): ...
@staticmethod
def get_unit_generic(freq): ...
class AutoDateLocator(DateLocator):
def __init__(
self,
tz: str | datetime.tzinfo = ...,
minticks: int = ...,
maxticks: int = ...,
interval_multiples: bool = True,
) -> None: ...
def __call__(self): ...
def tick_values(self, vmin, vmax): ...
def nonsingular(self, vmin, vmax): ...
def get_locator(self, dmin, dmax): ...
class YearLocator(RRuleLocator):
def __init__(
self, base=..., month=..., day=..., tz: str | datetime.tzinfo = ...
) -> None: ...
class MonthLocator(RRuleLocator):
def __init__(
self, bymonth=..., bymonthday=..., interval=..., tz: str | datetime.tzinfo = ...
) -> None: ...
class WeekdayLocator(RRuleLocator):
def __init__(
self, byweekday=..., interval=..., tz: str | datetime.tzinfo = ...
) -> None: ...
class DayLocator(RRuleLocator):
def __init__(
self, bymonthday=..., interval=..., tz: str | datetime.tzinfo = ...
) -> None: ...
class HourLocator(RRuleLocator):
def __init__(
self, byhour=..., interval=..., tz: str | datetime.tzinfo = ...
) -> None: ...
class MinuteLocator(RRuleLocator):
def __init__(
self, byminute=..., interval=..., tz: str | datetime.tzinfo = ...
) -> None: ...
class SecondLocator(RRuleLocator):
def __init__(
self, bysecond=..., interval=..., tz: str | datetime.tzinfo = ...
) -> None: ...
class MicrosecondLocator(DateLocator):
def __init__(self, interval=..., tz: str | datetime.tzinfo = ...) -> None: ...
def set_axis(self, axis)-> None: ...
def set_view_interval(self, vmin: float, vmax: float)-> None: ...
def set_data_interval(self, vmin: float, vmax: float)-> None: ...
def __call__(self): ...
def tick_values(self, vmin, vmax): ...
def epoch2num(e: list[float]) -> np.ndarray: ...
def num2epoch(d: list[float]) -> np.ndarray: ...
def date_ticker_factory(span, tz: str | datetime.tzinfo = ..., numticks=...): ...
class DateConverter(ConversionInterface):
def __init__(self, *, interval_multiples=...) -> None: ...
def axisinfo(self, unit: None | datetime.tzinfo, axis): ...
@staticmethod
def convert(value, unit, axis): ...
@staticmethod
def default_units(x, axis): ...
class ConciseDateConverter(DateConverter):
def __init__(
self,
formats=...,
zero_formats=...,
offset_formats=...,
show_offset=...,
*,
interval_multiples=...
) -> None: ...
def axisinfo(self, unit, axis): ...
class _SwitchableDateConverter:
def axisinfo(self, *args, **kwargs): ...
def default_units(self, *args, **kwargs): ...
def convert(self, *args, **kwargs): ...
__all__ = (
"datestr2num",
"date2num",
"num2date",
"num2timedelta",
"drange",
"epoch2num",
"num2epoch",
"set_epoch",
"get_epoch",
"DateFormatter",
"ConciseDateFormatter",
"AutoDateFormatter",
"DateLocator",
"RRuleLocator",
"AutoDateLocator",
"YearLocator",
"MonthLocator",
"WeekdayLocator",
"DayLocator",
"HourLocator",
"MinuteLocator",
"SecondLocator",
"MicrosecondLocator",
"rrule",
"MO",
"TU",
"WE",
"TH",
"FR",
"SA",
"SU",
"YEARLY",
"MONTHLY",
"WEEKLY",
"DAILY",
"HOURLY",
"MINUTELY",
"SECONDLY",
"MICROSECONDLY",
"relativedelta",
"DateConverter",
"ConciseDateConverter",
"rrulewrapper",
)