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
|
class date(object):
def __init__(self, year, month, day):
#TODO
pass
def __add__(self, other):
#TODO
return timedelta()
def __sub__(self, other):
#TODO
return timedelta()
def weekday(self):
#TODO
return 1
class datetime(object):
year = 0
month = 0
day = 0
hour = 0
minute = 0
second = 0
microsecond = 0
def __init__(self, year=0, month=0, day=0,
hour=0, minute=0, second=0, microsecond=0, tzinfo=None):
#TODO
pass
def __add__(self, other):
#TODO
return timedelta()
def __sub__(self, other):
#TODO
return timedelta()
@classmethod
def now(cls, tz=None):
#TODO
return cls.utcnow()
@classmethod
def utcnow(cls):
#TODO
return cls()
@classmethod
def strptime(cls, date_string, format):
#TODO
pass
def weekday(self):
#TODO
return 1
class timedelta(object):
days = 0
seconds = 0
microseconds = 0
|