Message157951
On Tue, Apr 10, 2012 at 6:44 AM, Antoine Pitrou <report@bugs.python.org> wrote:
> It's so easy that the patch isn't a one-liner and it seems to still have
> bugs wrt. intended behaviour.
Unless I miss something, the inverse to isocalendar() is simply
from datetime import *
def fromiso(year, week, day):
d = date(year, 1, 4)
return d + timedelta((week - 1) * 7 + day - d.isoweekday())
At least it works in my testing:
(2012, 15, 2) |
|
Date |
User |
Action |
Args |
2012-04-10 13:32:30 | belopolsky | set | recipients:
+ belopolsky, lemburg, pitrou, Esben.Agerbæk.Black |
2012-04-10 13:32:30 | belopolsky | link | issue14423 messages |
2012-04-10 13:32:30 | belopolsky | create | |
|