title: How to define start and end times in python
body: <p>I am using the code </p>
  
  <pre><code>def run_periodically(start, end, interval, func):
      event_time = start
      while event_time &lt; end:
          s.enterabs(event_time, 0, func, ())
          event_time += interval + random(-5, 45)
      s.run()
  
      run_periodically(time()+5, time()+1000000, 10, getData)
  </code></pre>
  
  <p>Now If I wanted to define the start time as 22.00 how is this formatted in python?  </p>
  
  <p>e.g. I would change the code to </p>
  
  <pre><code>starttime = #?#
  
  run_periodically(starttime(), time()+1000000, 10, getData)
  </code></pre>
  
  <p>What is the standard time formatting used to make this work? </p>