Date.microsecondDiff()
Description
The Date.microsecondDiff() API returns the difference between two date, time, or timestamp values in whole microseconds.
Parameters
Date/time 1 - The first date, time, or timestamp value.
Date/time 2 - The second date, time, or timestamp value, which is subtracted from the first.
Return Value
The number of whole microseconds between the two values.
Example
pjs.define("time", { type: 'time', initValue: '12:00:00' });
pjs.define("time1", { type: 'time', initValue: '12:00:10' });
pjs.define("diff", { type: 'integer' });
diff = Date.microsecondDiff(time1, time);
return diff;
// 10000000RPG Equivalent
%DIFF()