Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

timedelta year python

import datetime
from dateutil.relativedelta import relativedelta

last_year = (datetime.datetime.now()-relativedelta(years=1)).strftime("%Y-%m-%d")
 
PREVIOUS NEXT
Tagged: #timedelta #year #python
ADD COMMENT
Topic
Name
5+9 =