Skip to content

johndfowler/worldclock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A command-line world clock

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%