date format code

Michael Ströder michael at
Fri Jun 20 17:10:32 CEST 2003

Michael Engelhart wrote:
> Does anyone have the correct python format pattern for creating datetime 
> strings from either mx.DateTime objects or date strings ('10/10/2003') 
> for OpenLDAP.

I'd rather use time.strftime() since I don't know about mx.DateTime objects.

Current time converted to GeneralizedTime string in Zulu time:

import time

Ciao, Michael.

More information about the python-ldap mailing list