Re: [Tutor] deltatime difficulty

2008-09-18 Thread Wayne Watson
Title: Signature.html 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

Re: [Tutor] deltatime difficulty

2008-09-18 Thread Kent Johnson
On Thu, Sep 18, 2008 at 9:01 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: > Well, that works. Thanks. How do I know what modules (?) or methods are in > datetime? >From the docs: http://docs.python.org/lib/node78.html or ask: In [4]: import datetime In [5]: dir(datetime) Out[5]: ['MAXYEAR', 'MIN

Re: [Tutor] deltatime difficulty

2008-09-18 Thread Wayne Watson
Title: Signature.html Well, that works. Thanks. How do I know what modules (?) or methods are in datetime? greg whittier wrote: On Thu, Sep 18, 2008 at 8:38 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: What's the problem here. It seems right to me. line 9 is diff =... import ti

Re: [Tutor] deltatime difficulty

2008-09-18 Thread Don Jennings
On 9/18/08, Wayne Watson <[EMAIL PROTECTED]> wrote: > What's the problem here. It seems right to me. line 9 is diff =... >> >> import time >> from datetime import datetime >> def adjust_ftime(afilename, sec): >> # Vmmdd_hhmmss+tag, seconds in, new mmdd_hhmmss out >> ts = afilename[1

Re: [Tutor] deltatime difficulty

2008-09-18 Thread greg whittier
On Thu, Sep 18, 2008 at 8:38 PM, Wayne Watson <[EMAIL PROTECTED]>wrote: > What's the problem here. It seems right to me. line 9 is diff =... > > import time > from datetime import datetime > > You've imported the datetime class from the datetime module. > > def adjust_ftime(afilename, sec): >

[Tutor] deltatime difficulty

2008-09-18 Thread Wayne Watson
Title: Signature.html What's the problem here. It seems right to me. line 9 is diff =... import time from datetime import datetime def adjust_ftime(afilename, sec):     # Vmmdd_hhmmss+tag, seconds in, new mmdd_hhmmss out     ts = afilename[1:-7]  # use time stamp portion     format