The Date.millisecondDiff() method returns the difference of milliseconds between two different dates that are passedin milliseconds
Parameters
- Date
- Date
Return Value
Integer that is the difference of the millisecondss between the Number of milliseconds between two dates
Example
Code Block | ||
---|---|---|
| ||
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 |