Skip to navigation
Python get the days passed from certain months back
04.12.19
import datetime import dateutil.relativedelta now = datetime.datetime.now() past = now + dateutil.relativedelta.relativedelta(months=-int(month)) days = (now-past).days
https://stackoverflow.com/questions/9724906/python-date-of-the-previous-month
Reply
Anonymous
Information Epoch 1791221075
Save trees.
Home
Notebook
Contact us