TimeDelta¶
TimeDelta is meant to represent time-intervals with double precision sub-second accuracy. There is no loss of precision (at nano-second scale) as long as the intervals represented are less than ~14 days.
Factory¶
from isce3.core import timeDelta
obj = timeDelta(**kwds)
Documentation¶
-
class
isce3.core.TimeDelta.
TimeDelta
¶ Wrapper for pyTimeDelta.
-
getTotalDays
()¶ Equivalent number of days.
- Returns
Equivalent in number of days
- Return type
float
-
getTotalHours
()¶ Equivalent number of hours.
- Returns
Equivalent in number of hours
- Return type
float
-
getTotalMinutes
()¶ Equivalent number of minutes.
- Returns
Equivalent in number of minutes
- Return type
float
-
getTotalSeconds
()¶ Equivalent number of seconds.
- Returns
Equivalent in number of seconds.
- Return type
float
-
set
(dt)¶ Set the value using datetime.timedelta or float
- Parameters
dt (
datetime.timedelta
or float) – Input object
-