- We are going to write a shell script to ascertain the time in different time zones. To do this, we are going to use the date command. Create a timezones.sh shell script and write the following code in it:
TZ=":Antarctica/Casey" date
TZ=":Atlantic/Bermuda" date
TZ=":Asia/Calcutta" date
TZ=":Europe/Amsterdam" date