0

I have time record like '7:30:00' (type= datetime.timedelta)

I need to extract hr part, example '7'. how can i do it?

KbiR
  • 4,047
  • 6
  • 37
  • 103
  • 1
    Check out this one here http://stackoverflow.com/questions/2119472/convert-a-timedelta-to-days-hours-and-minutes . – alexblae Mar 23 '17 at 12:02
  • Possible duplicate of [Convert a timedelta to days, hours and minutes](http://stackoverflow.com/questions/2119472/convert-a-timedelta-to-days-hours-and-minutes) – CZoellner Mar 23 '17 at 12:08

0 Answers0