title: how to make a script be active for only on every hour on the half hour?
body: <p>I have a script and I want to code it so that it becomes active every hour on the half hour. This is the code I have so far. </p>
  
  <pre><code>from ConfigParser import *
  import emailModule
  from datetime import datetime
  import time
  
  configuration = ConfigParser()
  configuration.read('Email.conf')
  
  email = emailModule.emailModule(configuration)
  
  
  
  while(True):
  
  
      if (datetime.now().minute &gt; 28 and datetime.now().minute &lt; 32):
  
          email.emailWeather()
          time.sleep(3000)
  </code></pre>
  
  <p>I am just wondering is there a better way of doing this in python? IE a more efficient way or more reliable way of doing things. </p>