Thanks for the tips to all. Ah, yes, Help. I'll check out the link at the bottom. After I'm done arm wrestling my current program into being, I'll go back to the documentation for a review. I'm in the clean up stages now of checking and validating user input. Otherwise, it's close to release, 600+ lines. It should be very useful for its purpose, which is to basically re-adjust file time stamps. This was my baby-steps Python program to get to the next program,, which is a bit more formidable. Martin Walsh wrote: Hi Wayne, Wayne Watson wrote:Well, that works. Thanks. How do I know what modules (?) or methods are in datetime?The answer to this question is "read the fine manual", of course. http://docs.python.org/lib/module-datetime.html http://docs.python.org/lib/node78.html http://docs.python.org/lib/datetime-timedelta.html http://docs.python.org/lib/datetime-datetime.html However, python also provides tools for working out some of the details interactively. For example, try the following at a python prompt. .>>> import datetime .>>> help(datetime) .>>> help(datetime.datetime) .>>> dir(datetime) .>>> dir(datetime.datetime) .>>> help(dir) IPython, which is a third-party (enhanced) python shell, adds some additional conveniences for exploring python objects -- and I highly recommend it. http://ipython.scipy.org/ HTH, Marty --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet "Though no one can go back and make a brand new start, ANYONE can start from now and make a brand new end." -- Anonymous Web Page: <www.speckledwithstars.net/> |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor