programming-examples/python/Date/Python program to print next 5 days starting from today.py
2019-11-15 12:59:38 +01:00

4 lines
128 B
Python

import datetime
base = datetime.datetime.today()
for x in range(0, 5):
print(base + datetime.timedelta(days=x))