Closed Pitasi closed 6 years ago
@Pitasi Thanks for this PR. You are missing the README entries though.
Also, it looks like timedatectl
is not pre-installed on Unix machines. It's not available on my Mac either.
Is there an easy way to install timedatectl
? Also, can we use a more universal solution like this?
Yeah sorry, I wasn't thinking about OSX.
timedatectl
is part of systemd so it should be basically available in every Linux installation.
Googling around I found an equivalent command for OSX: systemsetup -listtimezones
, I cannot try it though. Using ls
should be universal but it's a bit of a mess checking which paths are available and then composing them like Europe/Madrid, also there many "fake" timezones like GMT+0 or GMT-0.
@Pitasi Sorry I couldn't get around to working on this PR. It seems like @missingcharacter has done it though, and it works great #17. I hope you don't mind me merging that PR instead. I will make sure to keep your commits.
Weather is using http://wttr.in/ as a provider for forecasts.
Clock has a 'list' subcommand to view available timezones (naming is roughly Continent/City but there are some exceptions and spaces must be replaced by underscores - e.g. America/Los_Angeles).