Skip to content

Instantly share code, notes, and snippets.

@benheb
Created March 1, 2013 19:55
Show Gist options
  • Save benheb/5067279 to your computer and use it in GitHub Desktop.
Save benheb/5067279 to your computer and use it in GitHub Desktop.
var length = this.sliderMaster[ "esriTimeUnitsSeconds" ].length * 60;
var min = Math.floor( length / 6000 );
var hour = Math.floor( length / 3600000 );
var day = Math.floor( length / 86400000 );
var month = Math.floor( length / 2592000000 );
this.sliderMaster[ "esriTimeUnitsMinutes" ][ min ]++;
this.sliderMaster[ "esriTimeUnitsHours" ][ hour ]++;
this.sliderMaster[ "esriTimeUnitsDays" ][ day ]++;
this.sliderMaster[ "esriTimeUnitsMonths" ][ month ]++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment