title: How to validate time format?
body: <p>This is what I have so far, it probably is completely junk. What I want to do is validate <code>caminput1</code>, so that the format is <code>HH:MM:SS</code>. </p>
  
  <p>The hashes are from when I was testing.</p>
  
  <pre><code>def cameraspeedcheck():
      timeformat = ("%H:%M:%S")
      caminput1 = input("At what time did sensor 1 actuate? ")
  
      # is caminput1 = time(HH:MM:SS)
      # time.strptime(caminput1[%H:%M:%S])
  
      caminput1.strptime(timeformat)
      # else cameraspeedcheck()
  </code></pre>
  
  <p>I am not very experienced with the syntax of all this stuff, or coding in general, but before you tell me to go and look it up.</p>
  
  <p>I have been looking around for ages, and I cannot find anything that explains the whole process.</p>