Title: Signature.html
The line
    x = time.strptime(fmt_time, "%H %M %S")
with fmt_time = "11 12 40"
in function produces the msg:
Traceback (most recent call last):
  File "C:\Sandia_Meteors\Improved_Sentinel\Sentinel_Playground\Utility_Dev\SU_DateTimeAdjust.py", line 209, in ?
    if not verify_time(bump_time):
  File "C:\Sandia_Meteors\Improved_Sentinel\Sentinel_Playground\Utility_Dev\SU_DateTimeAdjust.py", line 69, in verify_time
    x = time.strptime(fmt_time, "%H %M %S")
AttributeError: 'list' object has no attribute 'strptime'

However, in another function the line
  x = time.strptime(fmt_date, "%m %d %Y")
with fmt_date = "10 02 2008" works just fine.
Does my format string in strptime for time have a problem?

If I use the shell to set fmt_time and x = time.strptime(fmt_time, ..., I have no trouble.

 --

           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
            
          Interesting government experience prior their candidacy:

             Abraham Lincoln: 2 years; George Washington: 0 years;
              Dwight Eisenhower: 0 years; James Buchanan: 29 years*
                 Barack Obama: 11 years; John McCain: 26 years

              * Not a particularly good president at all
            
                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to