<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
How do I just get the current time? The following gives me 00:00:00.<br>
<br>
import datetime<br>
<br>
dt = datetime.time()<br>
print "dt: ", dt<br>
<br>
greg whittier wrote:
<blockquote
 cite="mid:a250eacf0809010741o8f77799kc045f32dc5fca03b@mail.gmail.com"
 type="cite">
  <pre wrap="">On Mon, Sep 1, 2008 at 10:17 AM, 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="">That's the question in Subject. For example, the difference between
08/29/2008 and 09/03/2008 is +5. The difference between 02/28/2008 and
03/03/2008 is 4, leap year--extra day in Feb. I'm really only interested in
years between, say, 1990 and 2050. In other words not some really strange
period of time well outside our current era of history.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You want the datetime module.

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">from datetime import datetime
datetime(2008,03,03) - datetime(2008,2,28)
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->datetime.timedelta(4)

  </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>          Interesting government experience prior to their presidency
          or bid for it:
            &nbsp;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: &lt;<a class="moz-txt-link-abbreviated" href="http://www.speckledwithstars.net/">www.speckledwithstars.net/</a>&gt;</pre>
</div>
</body>
</html>