Add total_seconds() method to datetime.time object #125435
Labels
extension-modules
C modules in the Modules dir
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
It often happens that when working with datetime.time objects, user has to write custom constructions to get the number of seconds from the time object, like that:
It would be convenient to have a method that returns total number of seconds of time object
Example:
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: