admin:linux:cli:date

Date and time on the Linux command line

tool name purpose
date displays date and time information
tzselect wizard for selecting a time zone
date --date 2017-03-01+60days +%F

If you want to know what the local time translates to in a foreign time zone:

TZ=Asia/Kolkata date -d "16:00 CET"

To display what time it's in your local zone for a foreign date on the CLI:

date --date='TZ="Asia/Kolkata" 20:30'

Source: Superuser: Timezone conversion by command line

  • Last modified: 2022-02-21 11:41