Created
March 1, 2013 19:55
-
-
Save benheb/5067279 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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