How to use 'python timedelta hours' in Python

Every line of 'python timedelta hours' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
26def strHoursToTimeDelta(hoursAsString):
27 return dt.timedelta(hours=int(hoursAsString))

Related snippets