Time

William Park opengeometry at yahoo.ca
Wed Apr 21 15:21:08 EDT 2004


Jonas Galvez <jonas at jonasgalvez.com> wrote:
> If I have a tuple like this:
> 
>     (year, month, day, hour, minute)
> 
> Is there a way to automatically generate a string like this?
> 
>     "YYYY-MM-DDTHH:MM:00"
> 
> I remember seeing something about it somewhere... wanted to be sure.

Hint:
    '%02d' % 4

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
Linux solution/training/migration, Thin-client



More information about the Python-list mailing list