aviaryan / utility-bash-scripts

🤓 Useful bash scripts to do automatable tasks with a single command
MIT License
419 stars 66 forks source link

Add script to get time at a location #7

Closed aviaryan closed 5 years ago

aviaryan commented 5 years ago

I have no clue how to do this but it's a good script idea, hence opening an issue.

We can have a script that takes in place info (example - PST, Chicago, London) and gives the current time in that location. One way to do it could be scraping Google or using a REST API but there could be native language libraries that do this too.

5

Pitasi commented 5 years ago

I wish I had time to make a PR for the hacktoberfest but as a starting point:

TZ='America/Los_Angeles' date

something like this works. More options available in the date man page :)

Pitasi commented 5 years ago

At last I found some minutes to write a couple of new scripts, including "clock". Merging #11 should close this issue :smile: