Date: Mon, 29 Sep 1997 23:47:32 +0200 (MET DST) From: Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE> To: wollman@khavrinen.lcs.mit.edu (Garrett Wollman) Cc: helbig@Informatik.BA-Stuttgart.DE, current@FreeBSD.ORG Subject: Re: Adding algorithms [Was: cvs commit: src/usr.bin/cksum crc32.c ...] Message-ID: <199709292147.XAA05359@rvc1.informatik.ba-stuttgart.de> In-Reply-To: <199709281357.JAA08605@khavrinen.lcs.mit.edu> from Garrett Wollman at "Sep 28, 97 09:57:42 am"
next in thread | previous in thread | raw e-mail | index | archive | help
[...] > > o Computes the Number of Week from a given date. > > According to DIN 1355 : The first week of year y is the first week > > that includes at least four days in year y. A week starts with > > Monday. I don't know about international standards so it might be > > useful for Germany only. > > ISO 8601. The strftime(3) function already provides this > functionality, although there is unfortunately no direct > iso8601weeknumber() function to give you the integer value directly. Unfortunately strftime(3)'s notion of week number only comes close to DIN 1355: According to ISO 9899: "%W" is replaced by the week number of the year (the first Monday as the first day of week 1) That's quite different from DIN 1355 and thus renders strftime's week numbers useless in Germany (and probably in other countries that adopted the ISO 8601 standard as well). BTW. the wording in ISO 9899 is a little less ambiguous and more consistent for "%W" and "%U". I guess I'll change the man page. Wolfgang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709292147.XAA05359>