1

I have a date in the format of Fri Oct 02 19:52:02 +0000 2009. I need to find the week number corresponding to this date in Python. I'm new to Python and I'm not aware of datetime having a functionality which allow me to find this.

halfer
  • 19,471
  • 17
  • 87
  • 173
user1452759
  • 7,786
  • 13
  • 39
  • 54

1 Answers1

3

time.strftime has the %U (week nr.) parameter.

chrki
  • 5,936
  • 6
  • 31
  • 53