Last active
August 27, 2021 02:57
-
-
Save efraimsutopo/dd90399a646a5d0abb9c18e09489e4cb to your computer and use it in GitHub Desktop.
Date +1 hour with GNU & Busybox
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
# 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