ISO週日曆

title: 与格里历关系.
content: 如果格里历年的第一天是星期五、星期六和星期日,或是星期六和星期日,或正好就是星期日是格里历年的第一天(在ISO年是去年的最后一天);又或者是星期一、星期二和星期三,或者是星期一和星期二,或正好就是星期一在格里历年的最后一天(是下一个ISO年的第一个星期),ISO周数年的年份会偏离格里历的年份。从1月4日至12月28日,ISO周数年和所有星期4的周数都会与格里历相同。
title: 第一周.
content: ISO 8601定义包含当年第一个星期四的那一周是第一个星期。 基于这个定义,下列的属性有相互的等价性:  如果1月1日是星期一、二、三、或四,它就是第一周,如果1月1日是星期五,它就是去年度的第53周;如果是星期六,它是去年第52周的一部分(如果上一年是格里历的闰年,它就是第53周的一部分);如果是星期日,它是去年第52周的部分。
title: 最后一周.
content: ISO周日历的最后一星期是第52周或53周,是下一年的第一周之前。这一周的特质如下:  如果12月31日是星期一、二、或三,它是下年度的第一周;如果是星期四,它会是结束结束的第53周;如果是星期五,它是年度的第52周(或是在闰年的第53周);如果是星期六或星期日,它是结束年度的第52周。
title: 每年的星期.
content: "长年",是有53星期的年,可以有下列与定义等效的叙述:  其它所有的ISO周日历的年都是只52周的"短年"。  再给定的年度中,12月28日对应的周数就是当年的星期数目。  平均而言,每5.6388......年(=7/[365.2425 – 52 X 7] = 400/71)有一年是53周的长年。  下面的71年是400年循环(加上2,000就是本世纪的年度)中有53周的年度(需要注意闰年有2月29日),未列出的年份仅有52周: ISO的常年有43次间隔6年,27次间隔5年,有一次间隔7年(从296年到303年)。  格里历年与这71个长年的对应关系可以细分如下:  格里历对应于短年的ISO周日历(无论开始或结束都不是星期四)的其余329年,可以细分叙述如下:  因此,在400年的循环中:
title: 每个月的星期.
content: ISO的标准并未定义任何周与月相关联的协定。月中的每一天和月,也都以周和周日表达,且不会混淆不清。  在会计年度中,周年统计受益于星期是一个显著实体的规则。因此,在实务中通常每一季固定有13个星期,并且分割成5+4+4周、4+5+4周、或4+4+5周。在53个星期的长年中,最后一季有14个星期。  虽然ISO 8601认为没有这样的需要,但在有必要将星期分配到一个月中的时候,可以应用的规则是从每年的第一个星期开始。由这种模式产生的结果,会是不规则的。有4个月(或在长年有5个月)会有5个星期,但是至少有29天是从星期四开始,30天是从星期三开始,31天从星期二开始。
title: 固定周数的日期.
content: 每年的一月和二月都有四天的周数是固定的。除外以星期四开始的闰年(三月份起周数加一),每个月都有四到五天的周数是固定的(详见下表)。
title: Equal weeks.
content: The pairs 02/41, 03/42, 04/43, 05/44, 15/28, 16/29, 37/50, 38/51 and triplets 06/10/45, 07/11/46, 08/12/47 have the same days of the month in common years. Of these, the pairs 10/45, 11/46, 12/47, 15/28, 16/29, 37/50 and 38/51 share their days also in leap years. Leap years also have triplets 03/15/28, 04/16/29 and pairs 06/32, 07/33, 08/34.  The weeks 09, 19–26, 31 and 35 never share their days of the month with any other week of the same year.
title: 缺点.
content: The year number of the ISO week very often differs from the Gregorian year number for dates close to 1 January. For example, 29 December 2014 is ISO 2015-W1-1, i.e., it is in year 2015 instead of 2014. A programming bug confusing these two year numbers is probably the cause of some Android users of Twitter unable to login around midnight of 29 December 2014 UTC.  Solar astronomic phenomena, such as equinox and solstice, vary over a range of at least seven days. This is because each equinox and solstice may occur any day of the week and hence on at least seven different ISO week dates. For example, there are spring equinoxes on 2004-W12-7 and 2010-W11-7.  The ISO week calendar relies on the Gregorian calendar, which it augments, to define the new year day (Monday of week 01). As a result, leap weeks are spread across the 400-year cycle in a complex, seemingly random pattern. There is no simple algorithm to determine whether a year has 53 weeks without tabular lookup. Most calendar reform proposals using leap week calendars are simpler in this regard, although they may choose a different leap cycle.  Not all parts of the world have a work week that begins with Monday. For example, in some Muslim countries, the work week may begin on Saturday, while in Israel it may begin on Sunday. In the US the work week is often defined to start on Monday, although the week itself is usually considered to start on Sunday.
title: 转换.
content: 查表法  主日字母星期表不仅可以用来查找格里历(CD)任意一年的主日字母(DL)和任意一天的日字母(dl)及星期(w),而却可以查找ISO周日历(WD)的周数(n)及其相应的日期(D),因此可以利用该表来实现这两种日历的相互转换。  位于世纪(c)列和年(y)行交叉处(c, y)的字母就是该年的主日字母(本世纪的主日字母位于A列),而位于日列(d)和月(m)行交叉点(d, m)的字母就是该日的字母,知道了主日字母就可以确定其它日字母的星期。由字母D就可以查到周数固定的日期,当遇到以周四开始的闰年(DC)从三月份起周数加一。  例一查找2032年10月1日的星期及周数: 例二查找1980–W40–1的日期:
title: 计算给定日期的周数.
content: The week number of any date can be calculated, given its ordinal date (i.e. position within the year) and its day of the week. If the ordinal date is not known, it can be computed by any of several methods; perhaps the most direct is a table such as the following.  Method: Using ISO weekday numbers (running from 1 for Monday to 7 for Sunday), subtract the weekday from the ordinal date, then add 10. Divide the result by 7. Ignore the remainder; the quotient equals the week number. If the week number thus obtained equals 0, it means that the given date belongs to the preceding (week-based) year. If a week number of 53 is obtained, one must check that the date is not actually in week 1 of the following year.  Example: Friday 26 September 2008
title: 计算给定年、周数和周日的日期.
content: This method requires that one know the weekday of 4 January of the year in question. Add 3 to the number of this weekday, giving a correction to be used for dates within this year.  Method: Multiply the week number by 7, then add the weekday. From this sum subtract the correction for the year. The result is the ordinal date, which can be converted into a calendar date using the table in the preceding section. If the ordinal date thus obtained is zero or negative, the date belongs to the previous calendar year; if greater than the number of days in the year, to the following year.  Example: year 2008, week 39, Saturday (day 6)
title: 其他的周数系统.
content: For an overview of week numbering systems see week number.  The US system has weeks from Sunday through Saturday, and partial weeks at the beginning and the end of the year, i.e. always 53 weeks. An advantage is that no separate year numbering like the ISO year is needed. Correspondence of lexicographical order and chronological order is preserved (just like with the ISO year-week-weekday numbering), but partial weeks make some computations of weekly statistics or payments inaccurate at end of December or beginning of January.  A variant of this US scheme groups the possible 1 to 6 days of December remaining in the last week of the Gregorian year within week 1 in January of the next Gregorian year, to make it a full week, bringing a system with accounting years having also 52 or 53 weeks and only the last 6 days of December may be counted as part of another year than the Gregorian year.  The US broadcast calendar counts the week containing 1 January as the first of the year, but otherwise works like ISO week numbering without partial weeks.

Summary: ISO周日历系统是ISO 8601日期和时间标准的一部分,是一种闰周历系统。这个系统主要用在政府和商务的会计年度,用以维持时序。这个系统依据格里历的年度中特定的一个周日,决定该年是否要增加一个星期。

Numérotation ISO des semaines: Le système de numérotation ISO des semaines est un système de calendrier faisant partie de la norme d’horodatage ISO 8601. Le système est principalement utilisé par les gouvernements et entreprises pour baser également les années comptables et fiscales et la planification de projets à cycles hebdomadaires de travail, ainsi que pour le paiement des salaires ou des loyers (quand ceux-ci sont versés hebdomadairement). Ce système a pour but d’identifier une semaine au cours d’une année, ou même de servir de système de date alternatif remplaçant le système plus complexe de date basée sur les mois de l’année.