Tz: A Time Zone Helper

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • tz

    šŸŒ A time zone helper (by oz)

  • This is very neat! I can use this at work where I talk to people from all over the world on a regular basis. Will it displace https://worldtimebuddy.com/ in my workflow? I don't know, but it'll be fun to find out.

    Not being one of the Cool Kids who has a golang environment ready to go, I logged into my trusty CentOS 7 box and installed golang with "yum install go" which went fine. I cloned the rep and attempted to build:

    git clone https://github.com/oz/tz

  • go

    The Go programming language

  • yum -y install git222

    I also had to reinstall golang with 'yum install go' and now I am rewarded with a completed 'go build'. Neat! I am looking forward to checking this little program out.

    [1] https://github.com/golang/go/issues/16104

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • termenv

    Advanced ANSI style & color support for your terminal applications

  • Look, you and I may have sane ANSI 16 colours, but itā€™ll be a very significant fraction of people that donā€™t (and almost no one will customise the next 240 colours). Remember things like that thereā€™s a fairly high chance that blue is almost invisible against black, and even bright blueā€™s contrast is commonly much too lowā€”to say nothing of the limited palette range.

    But what this program is doing is using termenvā€™s HasDarkBackground function to decide whether the terminal is light or dark, and is then specifying RGB colours. Iā€™d guess that itā€™ll try to guess whether to use 16 colours, 256 colours or 24-bit colour, but I donā€™t know. But the way it figures out the terminalā€™s background colourā€¦ ugh. Some terminals will support it, but for many itā€™ll fail and just assume black. Looks like on unix you could set an environment variable COLORFGBG to override this, https://github.com/muesli/termenv/blob/6bb55115565c27f4cc681..., but if youā€™re on Windows, tough luck, apparently youā€™re not allowed to have run `color f0` (Command Prompt) or similar: https://github.com/muesli/termenv/blob/537e36cb0472a69a3c828....

    The simple fact of the matter is that there are no particularly good solutions for handling colour in terminals if you want the colours to cohere and map to real-world colour understanding, which is what something like this would prefer to be able to do.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts