Last active
September 13, 2018 00:08
-
-
Save jshen28/418210396238d811ef1eba41b14da921 to your computer and use it in GitHub Desktop.
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
# print local date | |
date | |
# print UTC date | |
date -u | |
# format | |
date "+%m/%d/%Y -%H:%M:%S" | |
# date substraction | |
date -d '1 second/minute/hour ago' +"%Y-%m-%dT%H:%M:%SZ" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment