I thought I found a bug in the cal(1) command, in how it numbered weeks. Today "cal -w" shows week 5, where my other (work) calendar shows week 4.

Turns out it's not a bug, but it's much worse.

In the US "Jan 1 is always First week", so a week is actually assigned two numbers, depending on the year. In ISO-8601, a week only has one number (so Jan 1 2021 was week 53).

See "cal -wm"

· · Web · 0 · 0 · 0
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!