Skip to content

Commit b12a58c

Browse files
committed
dateutil first version
1 parent 088fd39 commit b12a58c

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

third_party/3/dateutil/__init__.pyi

Whitespace-only changes.

third_party/3/dateutil/parser.pyi

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
from typing import List, Tuple, Optional, Callable
2+
from datetime import datetime
3+
4+
__all__ = ... # type: List[str]
5+
6+
7+
class parserinfo(object):
8+
JUMP = ... # type: List[str]
9+
WEEKDAYS = ... # type: List[Tuple[str, str]]
10+
MONTHS = ... # type: List[Tuple[str, str]]
11+
HMS = ... # type: List[Tuple[str, str, str]]
12+
AMPM = ... # type: List[Tuple[str, str, str]]
13+
UTCZONE = ... # type: List[str]
14+
PERTAIN = ... # type: List[str]
15+
TZOFFSET = ... # type: Dict[str, int]
16+
17+
def __init__(self, dayfirst: bool=..., yearfirst: bool=...) -> None:
18+
...
19+
20+
def jump(self, name: str) -> bool:
21+
...
22+
23+
def weekday(self, name: str) -> str:
24+
...
25+
26+
def month(self, name: str) -> str:
27+
...
28+
29+
def hms(self, name: str) -> str:
30+
...
31+
32+
def ampm(self, name: str) -> str:
33+
...
34+
35+
def pertain(self, name: str) -> bool:
36+
...
37+
38+
def utczone(self, name: str) -> bool:
39+
...
40+
41+
def tzoffset(self, name: str) -> int:
42+
...
43+
44+
def convertyear(self, year: int) -> int:
45+
...
46+
47+
def validate(self, year: datetime) -> bool:
48+
...
49+
50+
51+
class parser(object):
52+
def __init__(self, info: parserinfo=...) -> None:
53+
...
54+
55+
def parse(
56+
self,
57+
timestr: str,
58+
default: Optional[datetime],
59+
ignoretz: bool=...,
60+
tzinfos =...,
61+
) -> datetime:
62+
...
63+
64+
DEFAULTPARSER = ... # type: parser
65+
66+
67+
def parse(timestr, parserinfo: parserinfo=..., **kwargs) -> datetime:
68+
...
69+
70+
71+
class _tzparser(object):
72+
...
73+
74+
75+
DEFAULTTZPARSER = ... # type: _tzparser

0 commit comments

Comments
 (0)