Skip to content

Commit fdc4a03

Browse files
author
Calvin Gutierrez
committed
playground day 1
1 parent a1c8a0d commit fdc4a03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

days/01-03-datetimes/playground.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
from datetime import datetime # imports use of date and time ; year,month ,day , hours , minutes, seconds , milliseconds
1+
from datetime import \
2+
datetime # imports use of date and time ; year,month ,day , hours , minutes, seconds , milliseconds
23
from datetime import date # imports use of just date ; year , month , day
4+
from datetime import timedelta
35

46

57
def main():
@@ -14,6 +16,8 @@ def main():
1416
print('sorry not christmas yet')
1517
else:
1618
print('Yay its christmas')
19+
t = timedelta(days=10, hours=14)
20+
print(str(t + datetime.today()))
1721

1822

1923
if __name__ == '__main__':

0 commit comments

Comments
 (0)