Skip to content

Instantly share code, notes, and snippets.

@efraimsutopo
Last active August 27, 2021 02:57
Show Gist options
  • Save efraimsutopo/dd90399a646a5d0abb9c18e09489e4cb to your computer and use it in GitHub Desktop.
Save efraimsutopo/dd90399a646a5d0abb9c18e09489e4cb to your computer and use it in GitHub Desktop.
Date +1 hour with GNU & Busybox
# GNU
date -v +1H -u "+%Y-%m-%dT%H:00:00.000Z"
# Busybox
date -d@"$(( `date +%s`+3600))" -u "+%Y-%m-%dT%H:00:00.000Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment