Python datetime to XML Schema timestamp format
So, is there a easy way to create a timestamp, in XML Schema format?
datetime.datetime.now() does not work.

>.now(): 2012-02-17 09:52:35.033232

> Desired: 2012-02-15T14:18:46.295-02:00

looks pretty much the same, but fails on schema validation...
It is simple to create manually, but python always have this kind of 'free stuff' hehe
Python datetime to XML Schema timestamp format
===

So, is there a easy way to create a timestamp, in XML Schema format?
datetime.datetime.now() does not work.

>.now(): 2012-02-17 09:52:35.033232

> Desired: 2012-02-15T14:18:46.295-02:00

looks pretty much the same, but fails on schema validation...
It is simple to create manually, but python always have this kind of 'free stuff' hehe