Created
October 28, 2019 09:45
-
-
Save ws141/956f67982698b8bdb5aec3798909098f to your computer and use it in GitHub Desktop.
Timestamp in ms to date converter alias for macOS
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
# Timestamp in ms to date converter | |
alias ts='function msToDate() { if [ -n "$1" ]; then date -r $(($1 / 1000)); else echo "Usage: ts [timestamp in ms]"; fi }; msToDate' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment