Python timedelta.total_seconds()方法 (Python timedelta.total_seconds() Method)
timedelta.timedeltotal_seconds() method is used in the timedelta class of module datetime.
timedelta.timedeltotal_seconds()方法在模块datetime的timedelta类中使用。
It uses an instance of the class and returns the total number of seconds covered in the given duration of that time instance.
它使用该类的实例,并返回在该时间实例的给定持续时间内覆盖的总秒数。
Module:
模块:
import datetime
Class:
类:
from datetime import timedelta
Syntax:
句法: