Skip to content

Instantly share code, notes, and snippets.

@rocktimsaikia
Created March 9, 2022 16:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rocktimsaikia/6eb73a7c6230569fb4cf6613ad1ecc93 to your computer and use it in GitHub Desktop.
Node uptime in HH:MM:SS
const uptime = new Date(Math.floor(process.uptime()) * 1000).toISOString().substr(11, 8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment