Skip to content

Commit

Permalink
[e] (0) Define meaning of dates before 1582.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2437 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 25, 2008
1 parent bfc7545 commit a4ebe85
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 42 deletions.
42 changes: 21 additions & 21 deletions index
Expand Up @@ -2733,8 +2733,8 @@
<h5 id=months><span class=secno>2.4.4.1 </span>Months</h5>

<p>A <dfn id=concept-month title=concept-month>month</dfn> consists of a specific
Gregorian date with no timezone information and no date information
beyond a year and a month. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>
proleptic Gregorian date with no timezone information and no date
information beyond a year and a month. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>

<p>A string is a <dfn id=valid-month-string>valid month string</dfn> representing a year
<var title="">year</var> and month <var title="">month</var> if it
Expand Down Expand Up @@ -2800,8 +2800,8 @@
</ol><h5 id=dates><span class=secno>2.4.4.2 </span>Dates</h5>

<p>A <dfn id=concept-date title=concept-date>date</dfn> consists of a specific
Gregorian date with no timezone information, consisting of a year, a
month, and a day. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>
proleptic Gregorian date with no timezone information, consisting of
a year, a month, and a day. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>

<p>A string is a <dfn id=valid-date-string>valid date string</dfn> representing a year
<var title="">year</var>, month <var title="">month</var>, and day
Expand Down Expand Up @@ -2998,10 +2998,10 @@
</ol><h5 id=local-dates-and-times><span class=secno>2.4.4.4 </span>Local dates and times</h5>

<p>A <dfn id=concept-datetime-local title=concept-datetime-local>local date and time</dfn>
consists of a specific Gregorian date, consisting of a year, a
month, and a day, and a time, consisting of an hour, a minute, a
second, and a fraction of a second, but expressed without a time
zone. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>
consists of a specific proleptic Gregorian date, consisting of a
year, a month, and a day, and a time, consisting of an hour, a
minute, a second, and a fraction of a second, but expressed without
a time zone. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>

<p>A string is a <dfn id=valid-local-date-and-time-string>valid local date and time string</dfn>
representing a date and time if it consists of the following
Expand Down Expand Up @@ -3045,10 +3045,10 @@
</ol><h5 id=global-dates-and-times><span class=secno>2.4.4.5 </span>Global dates and times</h5>

<p>A <dfn id=concept-datetime title=concept-datetime>global date and time</dfn>
consists of a specific Gregorian date, consisting of a year, a
month, and a day, and a time, consisting of an hour, a minute, a
second, and a fraction of a second, expressed with a time zone,
consisting of a number of hours and minutes. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>
consists of a specific proleptic Gregorian date, consisting of a
year, a month, and a day, and a time, consisting of an hour, a
minute, a second, and a fraction of a second, expressed with a time
zone, consisting of a number of hours and minutes. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>

<!--XXX [GREGORIAN] should point to
<dd id="refsGREGORIAN">[GREGORIAN]</dd>
Expand Down Expand Up @@ -3125,9 +3125,9 @@
<li>To unambiguously identify a moment in time prior to the
introduction of the Gregorian calendar, the date has to be first
converted to the Gregorian calendar from the calendar in use at
the time (e.g. from the Julian calendar). The date of Nero's
birth is the 15th of December 37, in the Julian Calendar, which
is the 13th of December 37 in the Gregorian Calendar.</li> <!--
the time (e.g. from the Julian calendar). The date of Nero's birth
is the 15th of December 37, in the Julian Calendar, which is the
13th of December 37 in the proleptic Gregorian Calendar.</li> <!--
XXX this might not be true. I can't find a reference that gives
his birthday with an explicit statement about the calendar being
used. However, it seems unlikely that it would be given in the
Expand Down Expand Up @@ -3256,19 +3256,19 @@
week-year, and vice versa. <a href=#refsGREGORIAN>[GREGORIAN]</a></p>

<p>A week-year with a number <var title="">year</var> that
corresponds to a year <var title="">year</var> in the Gregorian
calendar that has a Thursday as its first day (January 1st), and a
week-year <var title="">year</var> where <var title="">year</var> is
a number divisible by 400, or a number divisible by 4 but not by
100, has 53 weeks. All other week-years have 52 weeks.</p>
corresponds to a year <var title="">year</var> in the proleptic
Gregorian calendar that has a Thursday as its first day (January
1st), and a week-year <var title="">year</var> where <var title="">year</var> is a number divisible by 400, or a number
divisible by 4 but not by 100, has 53 weeks. All other week-years
have 52 weeks.</p>

<p>The <dfn id=week-number-of-the-last-day>week number of the last day</dfn> of a week-year with 53
weeks is 53; the week number of the last day of a week-year with 52
weeks is 52.</p>

<p class=note>The week-year number of a particular day can be
different than the number of the year that contains that day in the
Gregorian calendar. The first week in a week-year <var title="">year</var> is the week that contains the first Thursday of
proleptic Gregorian calendar. The first week in a week-year <var title="">year</var> is the week that contains the first Thursday of
the Gregorian year <var title="">year</var>.</p>

<p>A string is a <dfn id=valid-week-string>valid week string</dfn> representing a
Expand Down
44 changes: 23 additions & 21 deletions source
Expand Up @@ -1998,8 +1998,8 @@
<h5>Months</h5>

<p>A <dfn title="concept-month">month</dfn> consists of a specific
Gregorian date with no timezone information and no date information
beyond a year and a month. <a
proleptic Gregorian date with no timezone information and no date
information beyond a year and a month. <a
href="#refsGREGORIAN">[GREGORIAN]</a></p>

<p>A string is a <dfn>valid month string</dfn> representing a year
Expand Down Expand Up @@ -2090,8 +2090,9 @@
<h5>Dates</h5>

<p>A <dfn title="concept-date">date</dfn> consists of a specific
Gregorian date with no timezone information, consisting of a year, a
month, and a day. <a href="#refsGREGORIAN">[GREGORIAN]</a></p>
proleptic Gregorian date with no timezone information, consisting of
a year, a month, and a day. <a
href="#refsGREGORIAN">[GREGORIAN]</a></p>

<p>A string is a <dfn>valid date string</dfn> representing a year
<var title="">year</var>, month <var title="">month</var>, and day
Expand Down Expand Up @@ -2356,10 +2357,10 @@
<h5>Local dates and times</h5>

<p>A <dfn title="concept-datetime-local">local date and time</dfn>
consists of a specific Gregorian date, consisting of a year, a
month, and a day, and a time, consisting of an hour, a minute, a
second, and a fraction of a second, but expressed without a time
zone. <a href="#refsGREGORIAN">[GREGORIAN]</a></p>
consists of a specific proleptic Gregorian date, consisting of a
year, a month, and a day, and a time, consisting of an hour, a
minute, a second, and a fraction of a second, but expressed without
a time zone. <a href="#refsGREGORIAN">[GREGORIAN]</a></p>

<p>A string is a <dfn>valid local date and time string</dfn>
representing a date and time if it consists of the following
Expand Down Expand Up @@ -2424,10 +2425,10 @@
<h5>Global dates and times</h5>

<p>A <dfn title="concept-datetime">global date and time</dfn>
consists of a specific Gregorian date, consisting of a year, a
month, and a day, and a time, consisting of an hour, a minute, a
second, and a fraction of a second, expressed with a time zone,
consisting of a number of hours and minutes. <a
consists of a specific proleptic Gregorian date, consisting of a
year, a month, and a day, and a time, consisting of an hour, a
minute, a second, and a fraction of a second, expressed with a time
zone, consisting of a number of hours and minutes. <a
href="#refsGREGORIAN">[GREGORIAN]</a></p>

<!--XXX [GREGORIAN] should point to
Expand Down Expand Up @@ -2526,9 +2527,9 @@
<li>To unambiguously identify a moment in time prior to the
introduction of the Gregorian calendar, the date has to be first
converted to the Gregorian calendar from the calendar in use at
the time (e.g. from the Julian calendar). The date of Nero's
birth is the 15th of December 37, in the Julian Calendar, which
is the 13th of December 37 in the Gregorian Calendar.</li> <!--
the time (e.g. from the Julian calendar). The date of Nero's birth
is the 15th of December 37, in the Julian Calendar, which is the
13th of December 37 in the proleptic Gregorian Calendar.</li> <!--
XXX this might not be true. I can't find a reference that gives
his birthday with an explicit statement about the calendar being
used. However, it seems unlikely that it would be given in the
Expand Down Expand Up @@ -2706,19 +2707,20 @@
href="#refsGREGORIAN">[GREGORIAN]</a></p>

<p>A week-year with a number <var title="">year</var> that
corresponds to a year <var title="">year</var> in the Gregorian
calendar that has a Thursday as its first day (January 1st), and a
week-year <var title="">year</var> where <var title="">year</var> is
a number divisible by 400, or a number divisible by 4 but not by
100, has 53 weeks. All other week-years have 52 weeks.</p>
corresponds to a year <var title="">year</var> in the proleptic
Gregorian calendar that has a Thursday as its first day (January
1st), and a week-year <var title="">year</var> where <var
title="">year</var> is a number divisible by 400, or a number
divisible by 4 but not by 100, has 53 weeks. All other week-years
have 52 weeks.</p>

<p>The <dfn>week number of the last day</dfn> of a week-year with 53
weeks is 53; the week number of the last day of a week-year with 52
weeks is 52.</p>

<p class="note">The week-year number of a particular day can be
different than the number of the year that contains that day in the
Gregorian calendar. The first week in a week-year <var
proleptic Gregorian calendar. The first week in a week-year <var
title="">year</var> is the week that contains the first Thursday of
the Gregorian year <var title="">year</var>.</p>

Expand Down

0 comments on commit a4ebe85

Please sign in to comment.