3 ms·
If you're one of those "give me a terminal or give me death" master race kind of person, then I have a little shell script I use for this: % tz US West
by arp242 3y ago
If you're one of those "give me a terminal or give me death" master race kind of person, then I have a little shell script I use for this:
% tz
US West 18:39 -0800 PST
US East 21:39 -0500 EST
UTC 02:39 +0000 UTC
Ireland/UK 02:39 +0000 GMT
West Europe 03:39 +0100 CET
New Zealand 15:39 +1300 NZDT
Current 02:39 +0000 GMT
% tz 18:00
US West 10:00 -0800 PST
US East 13:00 -0500 EST
UTC 18:00 +0000 UTC
Ireland/UK 18:00 +0000 GMT
West Europe 19:00 +0100 CET
New Zealand 07:00 +1300 NZDT
Current 18:00 +0000 GMT
I find it's pretty convenient anyway.
https://github.com/arp242/dotfiles/blob/master/local/script/tz https://github.com/arp242/dotfiles/blob/master/local/script/...
- hn92726819 3y agoI use something similar, but I use -d "$*" instead of -d "$1" so I can do $ dates 4 hours ago One of two times "$*" had been useful
- arp242 3y agoI didn't know date supported that – can still do that with "tz '4 hours ago'". For me the most useful part is being able to quickly translate things like "let's do a video chat at 3pm PST" to something that makes sense, which is why it had the second argument to set the timezone.
- deleted 3y ago[deleted]