SplitDurationToParts


Computes components of a duration.

Syntax

C++
Python
 
def SplitDurationToParts(
	inDuration: Duration,
	/
)
-> (
	outDaysPart: int,
	outHoursPart: int,
	outMinutesPart: int,
	outSecondsPart: int,
	outNanosecondsPart: int,
	outTotalDays: float,
	outTotalHours: float,
	outTotalMinutes: float,
	outTotalSeconds: float,
	outTotalNanoseconds: float
)

Parameters

Name Type Default Description
Input value inDuration Duration Duration to split
Output value outDaysPart int Integer number of days
Output value outHoursPart int Integer number of hours (in range <-23;23>)
Output value outMinutesPart int Integer number of minutes (in range <-59;59>)
Output value outSecondsPart int Integer number of seconds (in range <-59;59>)
Output value outNanosecondsPart int Integer number of nanoseconds (in range <-999999999;999999999>)
Output value outTotalDays float Total duration expressed in days
Output value outTotalHours float Total duration expressed in hours
Output value outTotalMinutes float Total duration expressed in minutes
Output value outTotalSeconds float Total duration expressed in seconds
Output value outTotalNanoseconds float Total duration expressed in nanoseconds