Live data from Hacker News

GetTime for all timezone using CLI

github.com

1–4 of 4 posts

Re: GetTime for all timezone using CLI

#2
Almost trivially easy in a shell one-liner or awk script. I can't think of a reason I would want to display date/time for 418 unique named timezones, but to get the date/time in a specific timezone:

  TZ=Asia/Bangkok date
  TZ=America/Los_Angeles date

Re: GetTime for all timezone using CLI

#3
post #2

Almost trivially easy in a shell one-liner or awk script. I can't think of a reason I would want to display date/time for 418 unique named timezones, but to get the date/time in a specific timezone: TZ=Asia/Bangkok date TZ=America/Los_Angeles date

Yes, I made it for personal use. Also there is a --major flag for just important timezones.

My usage is: `wtbm`

Re: GetTime for all timezone using CLI

#4
post #2

Almost trivially easy in a shell one-liner or awk script. I can't think of a reason I would want to display date/time for 418 unique named timezones, but to get the date/time in a specific timezone: TZ=Asia/Bangkok date TZ=America/Los_Angeles date

https://github.com/dubesar/worldtimebuddy/issues/5.