如何在 Ubuntu 中添加多个时区
时区 时钟

> 
> 本快速教程介绍了在 Ubuntu 和其他发行版中使用 GNOME 桌面环境添加多时区时钟的步骤。
> 
> 
> 


![](/data/attachment/album/202004/18/142021jborblzkglbebrkk.jpg)


如果你的家人或同事在另一个国家，或者你居住在一个有多个时区的国家，那么了解时差就变得很重要。毕竟，你不想在凌晨 4 点打电话打扰别人。


一些 Linux 用户还会记下 [UTC 时间](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)，因为大多数服务器都使用 UTC。


如果你有多个时钟，那么可以更好地管理此类情况。你可以将一个时钟设置为本地时间，并将其他时钟同步到其他时区。这使得了解不同时间变得更加容易。


在本教程中，我将向你展示如何在 Ubuntu 和其他使用 GNOME 桌面环境的 Linux 发行版中添加其他时钟。


### 在 Ubuntu（以及其他使用 GNOME 的 Linux）中添加多个时区时钟


请[检查你正在使用的桌面环境](https://itsfoss.com/find-desktop-environment/)。本教程仅适用于 GNOME 桌面。


要添加其他时钟，可以使用一个叫 [GNOME Clocks](https://wiki.gnome.org/Apps/Clocks) 的小程序。


GNOME Clocks 是一个简单的应用，它可以显示多个位置的时间和日期。你也可以使用它来设置闹钟或计时器，它还包括秒表功能。


GNOME Clocks 存在于 Ubuntu 的 Universe 仓库中。因此，请确保首先[启用 Universe 仓库](https://itsfoss.com/ubuntu-repositories/)。


你可以在软件中心中搜索 “GNOME Clocks” 并从那里安装它。


![Gnome Clocks Ubuntu Software Center](/data/attachment/album/202004/18/142050ykt7akopgetflgkl.jpg)


或者，你可以打开终端并使用以下命令来安装 GNOME Clocks：



```
sudo apt install gnome-clocks
```

如果你使用的是其他 Linux 发行版，那么请使用发行版的软件中心或软件包管理器来安装此程序。


安装后，请按 `Super` 键（ `Windows` 键）并搜索 clocks：


![Gnome Clocks App Search Ubuntu](/data/attachment/album/202004/18/142051hmki2wgqzcsm1k99.jpg)


启动程序，你应该会看到一个界面，提供一些选项，例如添加世界时钟、设置闹钟、使用秒表和计时器。


单击左上角的 “+” 号，它将为你提供搜索地理位置的选项。搜索、选择并添加。


![Adding additional clocks](/data/attachment/album/202004/18/142052kzioclno5z3k2nln.jpg)


通过地理位置添加所需的时区后，你可以看到现在在消息托盘中添加了这个新时钟。它还显示了你当地时间与其他时区之间的时差。


![Multiple clocks for multiple time zones](/data/attachment/album/202004/18/142057p1ijaa88rzz9lvvz.jpg)


你可以使用 `Super + M` 键快速打开消息托盘。你可以掌握这些[有用的 Ubuntu 快捷方式](https://itsfoss.com/ubuntu-shortcuts/)来节省时间。


如果要删除其他时钟，你可以从 GNOME Clocks 应用界面执行以下操作：


![Remove Additional Clocks](/data/attachment/album/202004/18/142058rijol5fj6rjrci9r.jpg)


你无法（在这里）删除当前时区并设置为其他时区。有其他方法[更改 Linux 中的当前时区](https://itsfoss.com/change-timezone-ubuntu/)。


我希望你喜欢这个快速技巧。欢迎提出问题和建议。




---


via: <https://itsfoss.com/add-multiple-time-zones-ubuntu/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

If you have family members or colleagues in another country or if you live in a country with multiple time zones, keeping a track of the time difference becomes important. After all, you don’t want to disturb someone by calling at 4’o clock in the morning.

Some Linux users also keep a tab on the [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) because an overwhelming majority of servers use UTC.

Situations like these can be managed better if you have multiple clocks. You can set one clock to your local time and sync other clock(s) to other time zone(s). It makes keep an eye on the different times easier.

In this quick tutorial, I’ll show you how to add additional clocks in Ubuntu and other Linux distributions that use GNOME desktop environment.

## Adding multiple time zone clocks in Ubuntu (and other Linux using GNOME)

Please [check which desktop environment you are using](https://itsfoss.com/find-desktop-environment/). This tutorial is suitable for GNOME desktop only.

To add additional clocks, you can use a nifty little app unsurprisingly called [GNOME Clocks](https://wiki.gnome.org/Apps/Clocks).

GNOME Clocks is a simple application that shows the time and date in multiple locations. You can also use it to set alarms or timers. Stopwatch feature is also included.

GNOME Clocks is available in the universe repository in Ubuntu. So please make sure to [enable universe repository](https://itsfoss.com/ubuntu-repositories/) first.

You can search for GNOME Clocks in Software Center and install it from there.

![Gnome Clocks in Ubuntu Software Center](https://itsfoss.com/content/images/wordpress/2020/04/gnome-clocks-ubuntu-software-center.jpg)

Alternatively, you can open a terminal and use the following command to install GNOME Clocks:

`sudo apt install gnome-clocks`


If you are using some other Linux distribution, please use your distribution’s software center or package manager to install this application.

Once you have installed it, search for it by pressing the super key (Windows key) and typing clocks:

![Gnome Clocks App in Ubuntu](https://itsfoss.com/content/images/wordpress/2020/04/gnome-clocks-app-search-ubuntu.jpg)

Start the application and you should see an interface that provides you a few options like adding world clock, setting alarms, use stopwatch and timer.

Click on the + sign in the top left corner it will give you an option to search for a geographical location. Search it, select it and add it.

![Adding additional clocks in Ubuntu](https://itsfoss.com/content/images/wordpress/2020/04/add-multiple-time-zones-gnome.jpg)

Once you have added the required time zone(s) via its geographical location, you can see that this new clock is now added in the message try. It also shows the time difference between your local time and other time zones.

![Multiple Clocks in Ubuntu](https://itsfoss.com/content/images/wordpress/2020/04/multiple-clocks-ubuntu.jpg)

You can use Super + M keys to quickly open the message tray. There are some more [useful Ubuntu shortcuts](https://itsfoss.com/ubuntu-shortcuts/) you may master and save your time.

If you want to remove the additional clocks, you can do that from the GNOME Clocks application interface:

![Remove Additional Clocks in Ubuntu](https://itsfoss.com/content/images/wordpress/2020/04/remove-additional-clocks-ubuntu.jpg)

You cannot delete your current time zone and set it to something else. There are other ways [to change your current time zone in Linux](https://itsfoss.com/change-timezone-ubuntu/).

I hope you liked this quick tip. Questions and suggestions are always welcome.