Created
May 15, 2017 19:54
-
-
Save apaleslimghost/9caa5a0a33f0a75eee54091c370177ea 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
module.exports = time => { | |
const s = Math.floor(time / 1000); | |
const ms = time % 1000; | |
return [s, ms * 1e6]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment