Created
December 22, 2016 12:03
-
-
Save Fastidious/3ee395013ad012ef901adf564a6213f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
To generate it (from current date/time): | |
`date +%s` | |
Under macOS/BSD, to generate it based a given date: | |
`date -j -f "%d-%M-%Y" 20-12-2016 +%s` | |
And on Linux: | |
`date --date="20-12-16" +%s` | |
EPOCH to human: | |
`date -d @epoch` (Linux) | |
`date -r epoch` (macOS/BSD) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment