worldclock

Crates.ioworldclock
lib.rsworldclock
version0.2.0
sourcesrc
created_at2021-02-02 15:44:55.993087
updated_at2023-11-14 20:28:52.317979
descriptionA command-line world clock.
homepagehttps://github.com/jgraef/worldclock
repositoryhttps://github.com/jgraef/worldclock
max_upload_size
id349794
size37,487
Janosch Grรคf (jgraef)

documentation

README

World Clock

This is a small command-line application that shows the current time in multiple time zones.

Config

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.

Output

Example output:

 ๐Ÿ’ป  20:03:33
 ๐Ÿ   20:03:33
 ๐ŸŒด  13:03:33
 ๐Ÿ—ฝ  14:03:33
Commit count: 6

cargo fmt