date

Tags: bash

Examples

Display the time 10 hours from now in ISO 8601 UTC.

date -u -v+10H +"%Y-%m-%dT%H:%M:%SZ"

6pm today in ISO 8601 local time zone

date +"%Y-%m-%dT18:00:00%z"