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

2019-03-05 Thread Christopher Barker
On Mon, Mar 4, 2019 at 10:00 PM Steve Barnes wrote: > If anybody is looking for such components then wx.DateTime > There has got to be a stand alone python library for that! Anyone know the status of the venerable mxDateTime? -CHB -- Christopher Barker, PhD Python Language Consulting -

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

2019-03-04 Thread Steve Barnes
If anybody is looking for such components then wx.DateTime (https://wxpython.org/Phoenix/docs/html/datetime_overview.html) it is derived from wxDateTime (https://docs.wxwidgets.org/3.1/classwx_date_time.html) and should support all of its methods including things like DST changes, etc.,

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

2019-03-04 Thread Christopher Barker
There are all sorts of "Calendar" operations one might want -- I think those belong in a separate library, rather than a few tacked on to datetime. -CHB On Fri, Mar 1, 2019 at 2:48 AM Robert Vanden Eynde wrote: > Currently one can do week = d.isocalendar()[1] > > The iso definition of a week

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

2019-03-01 Thread Robert Vanden Eynde
Currently one can do week = d.isocalendar()[1] The iso definition of a week number has some nice properties. robertvandeneynde.be On Fri, 1 Mar 2019, 11:44 Antonio Galán, wrote: > The week number is usually refered to the week of the year, but the week > of the month is also interesting, for

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

2019-03-01 Thread Antonio Galán
The week number is usually refered to the week of the year, but the week of the month is also interesting, for example for some holiday which depend on the week number of the month, so in analogy with "weekday" we can use "yearweek" and "monthweek" El vie., 1 de marzo de 2019 9:33, Adrien