Time
Steve Holden
sholden at holdenweb.com
Mon Jun 3 20:59:37 EDT 2002
"David LeBlanc" <whisper at oz.net> wrote in message
news:mailman.1023144005.19450.python-list at python.org...
> You might want to check out mxDateTime in the mx toolkit at
> http://www.egenix.com/files/python/. I don't see a direct +/-day function
> but there is access to the elements of a datetime such that you could
> add/subtract an integer to the day value
>
> David LeBlanc
> Seattle, WA USA
>
> > -----Original Message-----
> > From: python-list-admin at python.org
> > [mailto:python-list-admin at python.org]On Behalf Of Gold Fish
> > Sent: Monday, June 03, 2002 14:32
> > To: python-list at python.org
> > Subject: Time
> >
> >
> > Anyone know how to determine the time in python. If the mtime in the
file
> > filename.py is Mon Jun 3 03:25:57 2002 ,if i want to set the time
forward
> > or backwards in 5 days time, how can i do that.
>
The "mx" way to do what GoldFish wants is to create a
RelativeDateTime(day=5) and subtract it from the current date.
regards
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------
More information about the Python-list
mailing list