[Tutor] datetime: inverse of datetime.date.isocalendar()

elmar werling elmar at net4werling.de
Fri Jul 12 22:42:38 CEST 2013


Am 12.07.2013 21:00, schrieb Alan Gauld:
> On 12/07/13 17:52, elmar werling wrote:
>
>> how to convert the tuble (iso_year, iso_week, iso_day) to a date object?
>>
>> I have tried the following scipt, but the results are buggy
>
,,,,,,,,
>>
>> print date_i, date_iso, date_string, date_ii
>
> I'm not sure what you expect to see or what differs
> from your expectation?
>
>
according to my expactation  date_i should equal date_ii

but instead

print date_i, date_iso, date_string, date_ii
2013-07-12 (2013, 28, 5) 13285 2013-07-19





More information about the Tutor mailing list