====== Date and time on the Linux command line ======
===== Tools =====
^ tool name ^ purpose |
| date | displays date and time information |
| tzselect | wizard for selecting a time zone |
===== Usage =====
==== echo date +x days on command line ====
date --date 2017-03-01+60days +%F
==== convert between timezones ====
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: [[https://superuser.com/questions/164339/timezone-conversion-by-command-line|Superuser: Timezone conversion by command line]]