Created
November 22, 2024 10:05
-
-
Save tecteun/302eec975324e653624c45cb8dd78fc4 to your computer and use it in GitHub Desktop.
UTC timestamps unix
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
date -u +"%Y-%m-%dT%H:%M:%S.000" | |
#Shows current UTC | |
date -u --date="+30 seconds" +"%Y-%m-%dT%H:%M:%S.000" | |
#Shows current UTC +30sec | |
date -u --date="-30 seconds" +"%Y-%m-%dT%H:%M:%S.000" | |
#Shows current UTC -30sec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment