Skip to content

Instantly share code, notes, and snippets.

@randria
Created February 26, 2026 04:48
Show Gist options
  • Select an option

  • Save randria/55c50c9c1a78e654d9a03163d2150d82 to your computer and use it in GitHub Desktop.

Select an option

Save randria/55c50c9c1a78e654d9a03163d2150d82 to your computer and use it in GitHub Desktop.
Date formats
date -u "+[%Y-%m-%d %H:%M:%S%z (%Z)]"       # Space separated with tz abbreviation
[2013-07-31 23:56:34+0000 (UTC)]                   

date -u "+[%Y-%m-%d %H:%M:%S.%N %z (%Z)]"  # Space separated with nanoseconds and tz abbreviation
[2013-07-31 23:56:34.812572000 +0000 (UTC)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment