[Python-ideas] Add a "week" function or attribute to datetime.date

Antonio Galán angala.agl at gmail.com
Fri Mar 1 03:30:26 EST 2019


Hi, datetime.date.today() (or other day)  has attributes .year and .month
wich return the year and the month of that date, also it has a function
weekday() wich return the number of the day in the week.

I think it is a good idea add a function or attribute "week" wich return
the number of the week on the year. It is useful to execute scripts once a
week for example.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190301/2926cb90/attachment.html>


More information about the Python-ideas mailing list