Re: Timezone and ISO8601 struggles with datetime and xml.utils.iso8601.parse

2005-09-09 Thread Samuel
> Take a look at the utcoffset method of datetime objects. This returns 0. However, meanwhile I figured out a way to do this: Every datetime object by default does not handle timezones at all, and as such "isoformat" does not return an offset in the ISO8601 string. The only way around this appear

Re: Timezone and ISO8601 struggles with datetime and xml.utils.iso8601.parse

2005-09-09 Thread skip
Samuel> mydatetime = datetime.datetime(year, month, day, hour, minute) Samuel> strtime= mydatetime.isoformat() Take a look at the utcoffset method of datetime objects. Samuel> The second problem has to do with the ISO8601 parser, which Samuel> raises the following error: