Sencha Documentation

A set of useful static methods to deal with date

Methods

 
getElapsed( Date dateA, [Date dateB] ) : Number
Returns the number of milliseconds between two dates
Returns the number of milliseconds between two dates

Parameters

  • dateA : Date
  • dateB : Date
    (optional) Defaults to now

Returns

  • Number   The diff in milliseconds
 
now : Date
Returns the current timestamp
Returns the current timestamp