From: Michael E. <men...@ka...> - 2003-06-20 19:42:38
|
Thanks this is just what I was looking for. Mike On Friday, June 20, 2003, at 11:10 AM, Michael Str=F6der wrote: > Michael Engelhart wrote: >> Does anyone have the correct python format pattern for creating=20 >> datetime strings from either mx.DateTime objects or date strings=20 >> ('10/10/2003') for OpenLDAP. > > I'd rather use time.strftime() since I don't know about mx.DateTime=20 > objects. > > Current time converted to GeneralizedTime string in Zulu time: > > import time > time.strftime('%Y%m%d%H%M%SZ',time.gmtime(time.time())) > > Ciao, Michael. > |