🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1611

Re: lots of questions about strftime()

#1611
From: DSTONE
Date: Thu, 16 Aug 1990 16:37
22 lines
1298 bytes

Can anybody explain why the %U and %W specifiers of strftime are
defined as they are? ISO 8601, which defines ISO week numbers,
says that weeks begin on Monday and that week 1 is that week
containing the first Thursday of the year. It also says that
Monday is day 1 of the week, not 0 as the %w specifier gives.
Moreover, also unlike %U and %W, there is no ISO week 0:
any days in a year before week belong to week 52 or 53
of the previous year.

Is there some ANSI standard which keeps the USA out of line from the
international standard?

Another question: does %Z reflect the daylight saving setting
shown by tm_isdst? In other words, does it return (for example)
"EDT" rather then "EST" in the summer? Or must it always return
the basic time zone abbreviation (here "EST") if any?

David Stone
<dstone@wl9.prime.com>
speaking for myself only.
Technical Details
Message-ID: <21600002@WL9.Prime.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!usc!ucsd!ucbvax!bloom-beacon!primerd!WL1!WL9!DSTONE
References: <496@mtndew.Tustin.CA.US>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!usc!ucsd!ucbvax!bloom-beacon!primerd!WL1!WL9!DSTONE
From: DSTONE@WL9.Prime.COM
Newsgroups: comp.std.c
Subject: Re: lots of questions about strftime()
Message-ID: <21600002@WL9.Prime.COM>
Date: 16 Aug 90 16:37:00 GMT
References: <496@mtndew.Tustin.CA.US>
Lines: 22
Nf-ID: #R:mtndew.Tustin.CA.US:-49600:WL9:21600002:000:848
Nf-From: WL9.Prime.COM!DSTONE    Aug 16 16:37:00 1990