티스토리 뷰

공부

[Python] timedelta

승가비 2020. 6. 18. 20:41
728x90
from datetime import timedelta, date
KST = date.today() + timedelta(hours=9)

https://stackoverflow.com/questions/6871016/adding-5-days-to-a-date-in-python

 

Adding 5 days to a date in Python

I have a date "10/10/11(m-d-y)" and I want to add 5 days to it using a Python script. Please consider a general solution that works on the month ends also. I am using following code: import re from

stackoverflow.com

 

728x90
댓글