<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
This sure was tricky business, but it's working. Thanks to all who
participated. <br>
<br>
Now if I can my "tutor" posting problem squared away! <br>
<br>
Kent Johnson wrote:
<blockquote
 cite="mid:1c2a2c590809080342w730c98can46c0061a3773f9c0@mail.gmail.com"
 type="cite">
  <pre wrap="">On Sun, Sep 7, 2008 at 11:27 PM, Wayne Watson
<a class="moz-txt-link-rfc2396E" href="mailto:sierra_mtnview@sbcglobal.net">&lt;sierra_mtnview@sbcglobal.net&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Well, maybe. Here's the file the change and results:

# Using datetime to do date-time math on a file date-time stamp and
# the creating the new stamp
from datetime import datetime, timedelta

Traceback (most recent call last):
  File
"C:/Sandia_Meteors/Improved_Sentinel/Sentinel_Playground/Utility_Dev/debugDateTime.py",
line 7, in ?
    d = datetime.datetime(*(time.strptime('20080321_113405', format)[0:6]))
AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
    </pre>
  </blockquote>
  <pre wrap=""><!---->
This is just some confusion about imports, abetted by the naming
scheme of the datetime module.

The datetime module contains a datetime class. The full name of the
class is datetime.datetime. If you "import datetime" then you have to
use the full name. Another way to import is "from datetime import
datetime". Now the name datetime refers to the class and you can just
use its name alone. So, try
  d = datetime(*(time.strptime('20080321_113405', format)[0:6]))

You can read about the import statement here:
<a class="moz-txt-link-freetext" href="http://docs.python.org/tut/node8.html">http://docs.python.org/tut/node8.html</a>

Kent

  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title>Signature.html</title>
<pre class="moz-signature" cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39&deg; 15' 7" N, 121&deg; 2' 32" W, 2700 feet
<font color="#330099">            
</font>          "If voting made any difference they wouldn't let us do it." 
                        -- Mark Twain
            
                    Web Page: &lt;<a class="moz-txt-link-abbreviated" href="http://www.speckledwithstars.net/">www.speckledwithstars.net/</a>&gt;</pre>
</div>
</body>
</html>