|
@ -24,7 +24,7 @@ |
|
|
* @param {Date} [end] The end date |
|
|
* @param {Date} [end] The end date |
|
|
* @param {Number} [minimumStep] Optional. Minimum step size in milliseconds |
|
|
* @param {Number} [minimumStep] Optional. Minimum step size in milliseconds |
|
|
*/ |
|
|
*/ |
|
|
TimeStep = function(start, end, minimumStep) { |
|
|
|
|
|
|
|
|
function TimeStep(start, end, minimumStep) { |
|
|
// variables
|
|
|
// variables
|
|
|
this.current = new Date(); |
|
|
this.current = new Date(); |
|
|
this._start = new Date(); |
|
|
this._start = new Date(); |
|
@ -36,7 +36,7 @@ TimeStep = function(start, end, minimumStep) { |
|
|
|
|
|
|
|
|
// initialize the range
|
|
|
// initialize the range
|
|
|
this.setRange(start, end, minimumStep); |
|
|
this.setRange(start, end, minimumStep); |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// enum scale
|
|
|
/// enum scale
|
|
|
TimeStep.SCALE = { |
|
|
TimeStep.SCALE = { |
|
|