title: How can I compare two time strings in the format HH:MM:SS?
body: <p>I have two time strings in <strong>HH:MM:SS</strong> format. For example, <code>str1</code> contains <code>10:20:45</code>,  <code>str2</code> contains <code>5:10:10</code>.</p>
  
  <p>How can I compare the above values?</p>