Skip to content

Instantly share code, notes, and snippets.

@justindarc
Created March 28, 2018 02:49
Show Gist options
  • Save justindarc/5651f9d69355232523f6dcaa2c55dd05 to your computer and use it in GitHub Desktop.
Save justindarc/5651f9d69355232523f6dcaa2c55dd05 to your computer and use it in GitHub Desktop.
zsh/bash timestamp
timestamp () {
date -r $(echo "$1" | cut -c "1-10")
}
@justindarc
Copy link
Author

$ timestamp 1522195811860977152
Tue Mar 27 17:10:11 PDT 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment