Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Date.millisecondDiff() method API returns the difference of milliseconds between two different dates that are passedbetween two date, time, or timestamp fields in milliseconds.

Parameters
  1. Date/time 1
  2. Date/time 2

Return Value

Integer that is the difference of the millisecondss Number of milliseconds between the two dates/times

Example

...

Code Block
languagejavascript
 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.millisecondDiff(time1, time);
 
 return diff;
// 10000

RPG Equivalent

%DIFF()