> The locale doesn’t contain enough information to calculate calendar
> weeks:
> https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html

Well, our locales do I think.

> There’s neither a data field for the first day of the week, nor one
> for
> the various ways to calculate a calendar week.

But there are, for instance:

michael@feivel:~$ locale -kc week-1stweek
LC_TIME
week-1stweek=1

> In the end I just need a reliable way to get at German (= ISO)
> calendar weeks, for use in business environments, and found that,
> rather than having to write code myself, I could use OpenBSD’s cal,
> which has an option for specifically this (although only for years
> 1753‥9999, same as ncal).

I haven't seen any error in ncal so far, but if you see some it might
be more helpful to report and/or fix those as ncal should not show
incorrect data.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

Reply via email to