Re: [2.4.4] creating a datetime.datetime from an XML xs:dateTime

2008-12-27 Thread skip
martin> is that http://labix.org/python-dateutil, I'll have a look at martin> it. Yup. PyPI: http://pypi.python.org/pypi/python-dateutil/1.4.1 Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: [2.4.4] creating a datetime.datetime from an XML xs:dateTime

2008-12-27 Thread Martin
Hi, 2008/12/27 : > Not in the standard lib, but you might want to check out the dateutil > package. Its dateutil.parser module does an excellent job parsing a wide > range of time formats. It's a bit weak in the timezone area though. is that http://labix.org/python-dateutil, I'll have a look

Re: [2.4.4] creating a datetime.datetime from an XML xs:dateTime

2008-12-27 Thread skip
martin> subject says it all. I'd like to create a python martin> datetime.datetime from an xs:string[1] ... martin> so I'd rather like to find some method (hopefully within the martin> standard lib) that had more peer review than only me :). Not in the standard lib, but you mi

[2.4.4] creating a datetime.datetime from an XML xs:dateTime

2008-12-27 Thread Martin
Hi, subject says it all. I'd like to create a python datetime.datetime from an xs:string[1] I know about time.strptime and could get to a datetime.datetime from there, but that would be error prone like: * are there time zones? * how is the year represented * etc, yadda yadda so I'd rather l