PDA

View Full Version : TaskRunner task taskStartTime, taskRunTime



aarffy
5 Nov 2014, 3:18 PM
In a TaskRunner task, the properties taskStartTime and taskRunTime have values like these: 1415227325880, 1415227319737.

What are these? I'm assuming they're some kind of date expression, but how are they usable and how can they be converted? I can't find documentation for them.

carol.ext
5 Nov 2014, 4:27 PM
Looking at source available from API http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.util.TaskRunner, those are set using Ext.Date.now().


console.log( Ext.Date.now() );
console.log( new Date( Ext.Date.now()));

console.log( new Date(1415227325880));
console.log( new Date( 1415227319737))

Output :


1415233414895
Wed Nov 05 2014 17:23:34 GMT-0700 (Mountain Standard Time)
Wed Nov 05 2014 15:42:05 GMT-0700 (Mountain Standard Time)
Wed Nov 05 2014 15:41:59 GMT-0700 (Mountain Standard Time)