tmdate
orib.dev·277w
Preview
Report Post

orib.dev: Tmdate

Plan 9’s date and time formatting APIs sucked. It was a subset of the unix date and time APIs, which also suck. It was only aware of two timezones: local and UTC. And, unlike Unix, we had neither strftime, nor strftime. Instead, we had a bunch of buggy and quirky time parsers scattered through the source tree.

We’ve had a crappy home-rolled date parser in seconds(1), more than one in the upas mail server source tree to deal with mail formats in emails, another one in the http server, and a bunch more hidden under rugs and in dusty corners.

And on IRC, I’ve been trying to help users that are trying to compute times in one timezone and move them to another. Our APIs may as well not have existed.

So I fi…

Similar Posts

Loading similar posts...