Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Last active November 17, 2017 16:31
Show Gist options
  • Save swyngaard/0dd9f5f425dcde1c390f5b6375124f1e to your computer and use it in GitHub Desktop.
Save swyngaard/0dd9f5f425dcde1c390f5b6375124f1e to your computer and use it in GitHub Desktop.
Convert between millisecond epoch timestamps and unix date

Convert between millisecond timestamps and unix date

Get current time as millisecond timestamp

date +%s%3N

Convert millisecond timestamp to Unix date

date -d @$[1510935504891 / 1000]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment