title: Convert string to time format more than 24 hours format ( [h]:mm:ss ) without incrementing day
body: <p>I need to convert string to time in hours format. I tried using the below But I didn't get the results that I expect.</p>
  <pre><code>inp_string = &quot;70:30:00&quot;
  print(datetime.strptime(inp_string, &quot;%H:%M:%S&quot;).time())
  </code></pre>
  <p>For this I'm getting the following error:</p>
  <pre><code>ValueError: time data '70:30:00' does not match format '%H:%M:%S'
  </code></pre>
  <p>If I enter the value of hours below 24 I'm getting good results;</p>
  <pre><code>new = '23:30:00'
  print(&quot;value:&quot;,datetime.strptime(new, &quot;%H:%M:%S&quot;).time())
  print(type(datetime.strptime(new, &quot;%H:%M:%S&quot;).time()))
  </code></pre>
  <p>output</p>
  <pre><code>value: 23:30:00
  &lt;class 'datetime.time'&gt;
  </code></pre>
  <p>Like this, I have to convert a string into time format where the hours are greater than 24.</p>