Skip to content

Instantly share code, notes, and snippets.

@manveru
Created January 9, 2011 15:45
Show Gist options
  • Save manveru/771761 to your computer and use it in GitHub Desktop.
Save manveru/771761 to your computer and use it in GitHub Desktop.
Get current Beat with Nimrod
import times, os
"TZ".putEnv("CET")
var time = getTime().getLocalTime
echo((time.hour.float * (1000.0 / 24.0)) +
(time.minute.float * (1000.0 / 1440.0)) +
(time.second.float * (1000.0 / 86400.0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment