I'm trying to generate an RFC 3339 UTC timestamp in Python. So far I've been able to do the following:
>>> d = datetime.datetime.now()
>>> print d.isoformat('T')
tz must be an instance of a class tzinfo subclass
an abstract base class for time zone information objects.
timestamp = date(DATE_RFC3339);
Further down in the same doc that you linked to, it explains how to implement it, giving some examples, including full code for a
UTC class (representing UTC), a
FixedOffset class (representing a timezone with a fixed offset from UTC, as opposed to a timezone with DST and whatnot), and a few others.