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

New option for time zone #50

Closed
decibyte opened this issue Jan 25, 2018 · 4 comments
Closed

New option for time zone #50

decibyte opened this issue Jan 25, 2018 · 4 comments

Comments

@decibyte
Copy link

decibyte commented Jan 25, 2018

I like how there's already the -u option to get the clock to show UTC. How about another option to define a time zone, relative to UTC? E.g. -z +2:00, to be able to show CEST even without having the computer clock set to this time zone.

Along with #51, this would allow for awesome World Clock monitors, with multiple clocks showing the time in New York, London, Tokyo, etc. -- or any list of cities relevant for yourself or your business.

@anarcat
Copy link
Collaborator

anarcat commented Jan 25, 2018

this is what the TZ environment variable is for. i don't think we should implement an option where there is already a standard environment variable knob.

@anarcat anarcat closed this as completed Jan 25, 2018
@decibyte
Copy link
Author

That is brilliant, @anarcat. Thanks!

@decibyte
Copy link
Author

decibyte commented Jan 25, 2018

Oh, maybe -h/man should mention this?

@anarcat
Copy link
Collaborator

anarcat commented Jan 25, 2018

sure - the manpage could mention the TZ variable... we could take example on the date manpage and add examples with the variable...

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

Successfully merging a pull request may close this issue.

2 participants