Format dateTime as %U or %W depending on whether Sunday or Monday is the 
first day of the week.

eg current.dateTime.format("%U")

see 
https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior 
for full formatting options





On Tuesday, 20 September 2016 11:53:46 UTC+3, zkab wrote:

> How do I get current week no? 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to