-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht.py
More file actions
38 lines (30 loc) · 705 Bytes
/
t.py
File metadata and controls
38 lines (30 loc) · 705 Bytes
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
import datetime
def main(year, month):
# if year == 2019 and month == 9:
# print('end....')
# else:
if(month == 12):
newYear = year + 1
newMonth = 1
else:
newYear = year
newMonth = month + 1
a = datetime.datetime(year, month, 13, 16, 00, 00)
b = datetime.datetime(newYear, newMonth, 13, 16, 00, 00)
a = datetime.datetime.strftime(a,'%Y-%m-%dT%H:%M:%S')
b = datetime.datetime.strftime(b,'%Y-%m-%dT%H:%M:%S')
print(a,'-------',b)
def count():
year = 2011
month = 8
end = False
while True:
if month == 12:
year += 1
month = 1
else:
month += 1
if year == 2019 and month == 9 :
break
main(year,month)
count()