Message157912
| Author |
lemburg |
| Recipients |
Esben.Agerbæk.Black, belopolsky, lemburg, pitrou, vstinner |
| Date |
2012年04月09日.22:20:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<4F8360A5.7090106@egenix.com> |
| In-reply-to |
<1334008213.67.0.732587422156.issue14423@psf.upfronthosting.co.za> |
| Content |
Alexander Belopolsky wrote:
>
> Alexander Belopolsky <alexander.belopolsky@gmail.com> added the comment:
>
> Before you invest in a C version, let's discuss whether this feature is desirable. The proposed function implements a very simple and not very common calculation. Note that even dateutil does not provide direct support for this: you are instructed to use relativedelta to add weeks to January 1st of the given year.
Which is wrong, since the start of the first ISO week of a year
can in fact start in the preceeding year...
http://en.wikipedia.org/wiki/ISO_week_date
and it's not a simple calculation.
ISO weeks are in common use throughout Europe, it's part of the
ISO 8601 standard. mxDateTime has had such constructors for ages:
http://www.egenix.com/products/python/mxBase/mxDateTime/doc/#_Toc293683820 |
|