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
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
[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,
[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
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