texttimedifference(
START
,
END
)

The texttimedifference( function allows time math to be performed on text values.


Parameters

This function has two parameters:

start – The starting point of the time interval.

end – The ending point of the time interval.


Description

This function allows time math to be performed on text values (use the timedifference( function when working with numeric time values). The parameters and result are all text.

texttimedifference("9:45 AM","12:20 PM") ☞ 2:35:00
texttimedifference("2:10:37 PM","7:50:09 PM") ☞ 5:39:32
texttimedifference("2:10:37 PM","7:50:09 AM") ☞ -6:20:28

If you need to calculate the difference between two times that cross midnight, use the texttimeinterval( function. If you need to calculate time differences across multiple days, use SuperDates (see superdate().

Note: This function is equivalent to:

timepattern(timedifference(time(start),time(end)),"hh:mm:ss")

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.