Versions Compared

Key

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

The Date.microsecondDiff() method returns the difference of microseconds between  between two different dates that are passedin microseconds

Parameters
  1. Date
  2. Date

Return Value

Integer that is the difference Number of the microseconds between the two dates

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.microsecondDiff(time1,time)

return diff;
//10000000