The Date.secondDiff() method returns the difference between two different dates in seconds.
Parameters
- Date
- Date
Return Value
Number of seconds between two dates
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.secondDiff(time1,time) return diff; //10