Skip to main content

Get Time Between Date/Times

Overview​

This action calculates the following times between two Date/Time values: milliseconds, seconds, minutes, hours, days, years.

Inputs​

First Date/Time​

The first Date/Time value used to calculate the time between two Date/Times.

Type
Date/Time

Second Date/Time​

The second Date/Time value used to calculate the time between two Date/Times.

Type
Date/Time

Absolute Value Output​

If set to true, the output values are always a positive number.

TypeDefault
Booleanfalse

Rounding Mode​

The rounding mode used when calculating the time. The value must be a valid Rounding Mode value.

TypeDefault
TextHALF_EVEN

Decimal Scale​

How many decimal points are used when calculating the time value between two Date/Time fields.

Type
Number

Outputs​

Milliseconds​

The number of milliseconds between the two Date/Time values.

TypeVariable Name
Numbermilliseconds

Seconds​

The number of seconds between the two Date/Time values.

TypeVariable Name
Numberseconds

Minutes​

The number of minutes between the two Date/Time values.

TypeVariable Name
Numberminutes

Hours​

The number of hours between the two Date/Time values.

TypeVariable Name
Numberhours

Days​

The number of days between the two Date/Time values.

TypeVariable Name
Numberdays

Years​

The number of years between the two Date/Time values.

TypeVariable Name
Numberyears