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,824
  • 17
  • 99
  • 186
user1452759
  • 8,810
  • 15
  • 42
  • 58

1 Answers1

3

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

chrki
  • 6,143
  • 6
  • 35
  • 55