Skip to content

Instantly share code, notes, and snippets.

@Tolmark12
Created June 12, 2014 22:00
Show Gist options
  • Save Tolmark12/1bee50bbde79f0658319 to your computer and use it in GitHub Desktop.
Save Tolmark12/1bee50bbde79f0658319 to your computer and use it in GitHub Desktop.
now = new Date()
now.setHours now.getHours() - 1
now.setMinutes 0
now.setSeconds 0
totalPixelsFromLeft = now.getHours() * 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment