Skip to content

Instantly share code, notes, and snippets.

@tecteun
Created November 22, 2024 10:05
Show Gist options
  • Save tecteun/302eec975324e653624c45cb8dd78fc4 to your computer and use it in GitHub Desktop.
Save tecteun/302eec975324e653624c45cb8dd78fc4 to your computer and use it in GitHub Desktop.
UTC timestamps unix
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