Path: 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 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 speaking for myself only.