Ken, this should work: datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")
>>> print datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ") 2011-02-21T16:12:55Z
Ken, this should work: datetime. datetime. utcnow( ).strftime( "%Y-%m- %dT%H:% M:%SZ")
>>> print datetime. datetime. utcnow( ).strftime( "%Y-%m- %dT%H:% M:%SZ") 21T16:12: 55Z
2011-02-