i use this to find out current week and total number of weeks for
current year:
now = datetime.now()
weeks_in_year = int(date(now.ye ar, 12, 31).strftime("% W"))
current_week = int(date(now.ye ar, now.month, now.day).strfti me("%W"))
is this the best way or is there a better way?
Aljosa Mohorovic
current year:
now = datetime.now()
weeks_in_year = int(date(now.ye ar, 12, 31).strftime("% W"))
current_week = int(date(now.ye ar, now.month, now.day).strfti me("%W"))
is this the best way or is there a better way?
Aljosa Mohorovic
Comment