datetime - How to derive the week start for a given (iso) weeknumber / year in python -


this question has answer here:

i know can use datetime.isocalendar() getting weeknumber given date. how can inverse, given weeknumber , year retrieve first day of week.

if you're limited stdlib following:

>>> datetime.datetime.strptime('2011, 4, 0', '%y, %u, %w') datetime.datetime(2011, 1, 23, 0, 0) 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -