Skip to content

Instantly share code, notes, and snippets.

@rvause
Created December 10, 2020 14:15
Show Gist options
  • Save rvause/286af5837bc6f61327e7c30c24a9842b to your computer and use it in GitHub Desktop.
Save rvause/286af5837bc6f61327e7c30c24a9842b to your computer and use it in GitHub Desktop.
function getBeats() {
var now = new Date();
return Math.floor((((now.getUTCHours() + 1) * 3600) + (now.getUTCMinutes() * 60) + now.getUTCSeconds()) / 86.4);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment