Re: need a little help with time

2005-08-27 Thread Randy Bush
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 -- http://mail.python.org/mailman/listinfo/python-list

Re: need a little help with time

2005-08-26 Thread nephish
the mxDateTime thing should be great, i have to pass this stuff back and forth with MySQL DateTime fields, thanks a lot ! -- http://mail.python.org/mailman/listinfo/python-list

Re: need a little help with time

2005-08-26 Thread Eddie Corns
[EMAIL PROTECTED] writes: >Hey there. >i have a time string (created with strftime) then read from a file, >i am having some trouble understanding how to get the difference >between times. >i know i can structime(timestring) and get a time value, but i dont >know how to manipulate it. >basically,

Re: need a little help with time

2005-08-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hey there. > i have a time string (created with strftime) then read from a file, > i am having some trouble understanding how to get the difference > between times. > i know i can structime(timestring) and get a time value, but i dont > know how to manipulate it. > > bas

need a little help with time

2005-08-26 Thread nephish
Hey there. i have a time string (created with strftime) then read from a file, i am having some trouble understanding how to get the difference between times. i know i can structime(timestring) and get a time value, but i dont know how to manipulate it. basically, if i have string 2005-08-24 09:25