Tty-clock
Introduction:
Tty-clock is a command line application that can show a real time, continuously updating clock in any terminal emulator. You can customize it extensively using its numerous command line options.
You can install “tty-clock” from the package manager of your Linux distribution by using the search function. To download it in Ubuntu, use the following command:
$ sudo apt install tty-clock
To view all of its options, run the following command:
$ tty-clock --help
The clock visible in the screenshot above has been created by running the following command:
$ tty-clock -sct -f "%a, %d %b %Y %T %z"
By default, tty-clock shows time for default locale selected on your Linux system. You can show time for a different time zone by prefixing the command with “TZ” environment variable. The command below shows current date and time in New York.
$ TZ='America/New_York' tty-clock -sct -f "%a, %d %b %Y %T %z"
You can refer to all possible values of the “TZ” environment variable.
Note that tty-clock cannot simultaneously display multiple clocks. You will have to use a different window for each instance of tty-clock. You can also use multi-pane terminal emulators like “Terminator” to view time at multiple places at once.