TIMEDIFF

TIMEDIFF returns the interval between two timestamp values as a dynamic array.

COMMAND SYNTAX

    TIMEDIFF(Timestamp1, Timestamp2, Mask)

SYNTAX ELEMENTS

The TIMEDIFF function returns the interval between two timestamp values by subtracting the value of Timestamp2 from Timestamp1. The interval is returned as an attribute delimited array of the time difference.

The Mask is an integer from 0 to 7 and selects one of the following output formats:

MaskArray
0Days^Hours^Minutes^Seconds^Milliseconds (Default)
1Weeks^Days^Hours^Minutes^Seconds^Milliseconds
2Months^Days^Hours^Minutes^Seconds^Milliseconds
3Months^Weeks^Days^Hours^Minutes^Seconds^Milliseconds
4Years^Days^Hours^Minutes^Seconds^Milliseconds
5Years^Weeks^Days^Hours^Minutes^Seconds^Milliseconds
6Years^Months^Days^Hours^Minutes^Seconds^Milliseconds
7Years^Months^Weeks^Days^Hours^Minutes^Seconds^Milliseconds
Last update: Sat, 16 Jul 2022 15:34