Re: Can anyone suggest a date peocedure...

2008-07-10 Thread RV
On Thu, 10 Jul 2008 13:39:29 -0700, Gary Herron
<[EMAIL PROTECTED]> wrote:


>The datetime module has what you need.
>
>It has methods (with examples) on building a datetime object from a 
>string, and it has a object named timedelta, and the ability to subtract 
>a timedelta from a time.
>
>For instance, the time right now and the time exactly one day ago:
>
> >>> from datetime import *
> >>> datetime.today()
>datetime.datetime(2008, 7, 10, 13, 38, 48, 279539)
> >>> datetime.today()-timedelta(1)
>datetime.datetime(2008, 7, 9, 13, 38, 50, 939580)
>
>
>Gary Herron

Thanks Gary!   This works great.  Now all I need to know is how to
plug the date into the datetime object from a string.

Ron

--
http://mail.python.org/mailman/listinfo/python-list


Re: Can anyone suggest a date peocedure...

2008-07-12 Thread RV
On Thu, 10 Jul 2008 20:04:27 -0400, RV <[EMAIL PROTECTED]> wrote:

Gary, Larry, Michiel ,

Thanks very much, your helpful info has enabled me to get past a
learning bump.  

Ron


--
http://mail.python.org/mailman/listinfo/python-list