Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: clock offset, and legend/title #8

Open
poetaman opened this issue Aug 4, 2021 · 3 comments
Open

Feature: clock offset, and legend/title #8

poetaman opened this issue Aug 4, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@poetaman
Copy link

poetaman commented Aug 4, 2021

Add a way to pass a clock offset, and a legend/title. That will enable using rsclock as a world-clock & users will be able to see the times from different regions of the world in split terminal screens like supported by tmux.

Currently only one location's time is visible, with ability to specify clock offset, each of the clocks in image below would be a different city:
Screen Shot 2021-08-04 at 1 21 27 PM

@valebes valebes added the enhancement New feature or request label Aug 5, 2021
@Kyllingene
Copy link
Contributor

Properly handling timezones is an absolute pain. It's not just an offset: its daylight savings time, it's leap years, leap days, and leap seconds, it's countries changing timezones, DST, etc. Chrono handles timezones for you, so it might be possible to enter a supported timezone.

@poetaman
Copy link
Author

@Kyllingene Timezones are also supported in https://github.com/poetaman/arttime.

@valebes
Copy link
Owner

valebes commented Apr 24, 2023

Probably it could be easy to implement using Chrono-Tz crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants