need a little help with time

Randy Bush randy at psg.com
Fri Aug 26 12:46:31 EDT 2005


i am doing disgusting looking junk based on calendar.  example

    now = calendar.timegm(time.gmtime())
    aWeek = 7*24*60*60
    print time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(now + aWeek))

randy




More information about the Python-list mailing list