Skip to content

Instantly share code, notes, and snippets.

@Aurora12
Created July 16, 2025 16:51
Show Gist options
  • Select an option

  • Save Aurora12/de4130a1bf899d85da5eb711f6ef8d7b to your computer and use it in GitHub Desktop.

Select an option

Save Aurora12/de4130a1bf899d85da5eb711f6ef8d7b to your computer and use it in GitHub Desktop.
Date-time in Bash in a portable way that works on GNU and BSD systems
datetime="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment