Crates.io | worldclock |
lib.rs | worldclock |
version | 0.2.0 |
source | src |
created_at | 2021-02-02 15:44:55.993087 |
updated_at | 2023-11-14 20:28:52.317979 |
description | A command-line world clock. |
homepage | https://github.com/jgraef/worldclock |
repository | https://github.com/jgraef/worldclock |
max_upload_size | |
id | 349794 |
size | 37,487 |
This is a small command-line application that shows the current time in multiple time zones.
Which timezones are displayed is controlled by a config file at ~/.config/worldclock.toml
.
Example config file:
# Local clock
[[clocks]]
name = "๐ป"
# At home
[[clocks]]
name = "๐ "
tz = "Europe/Berlin"
# Costa Rica
[[clocks]]
name = "๐ด"
tz = "America/Costa_Rica"
# New York (EST)
[[clocks]]
name = "๐ฝ"
tz = "America/New_York"
Each [[clock]]
will display one line with the current time. If you don't specify the timezone with tz
it'll use the current time.
Otherwise you can specify the timezone. For valid timezones you can have a look at timedatectl list-timezones
.
Each clock can have a optional name, that will be displayed instead of the timezone name.
Example output:
๐ป 20:03:33
๐ 20:03:33
๐ด 13:03:33
๐ฝ 14:03:33