-
Notifications
You must be signed in to change notification settings - Fork 4
/
569.txt
102 lines (73 loc) · 5.75 KB
/
569.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[1]
[DFN[[RUBYB[先発グレゴリオ暦]@en[proleptic Gregorian calendar]]]]は、
[[グレゴリオ暦]]を[[過去]]に延長して適用したものです。
[2]
[[グレゴリオ暦]]は[[18世紀]]以後各[[国]]で順次採用されていきました。
それ以前には[[ユリウス暦]]や[[天保暦]]など、
異なる[[暦法]]が採用されていました。
ですから、[[歴史]]的な視点から[[過去]]の[[日付]]を記述するなら、
当時の[[暦法]]に従って表記するべきです。
しかし、[[計算機]]上の処理を考えると、
[[グレゴリオ暦]]より前の[[過去]]の[[日付]]を扱うことはあまりなく、
[[改暦]]を考慮した場合分けを行うのは通常対価が大きすぎます。
[[国]]によって[[改暦]]の時期が異なること、
更に時代を遡れば様々な[[暦]]が使われていたことを考慮すると、
かなり複雑な仕組みが必要になります。
そこで、[[過去]]も含めてすべて[[グレゴリオ暦]]で統一した[[先発グレゴリオ暦]]が使われることがよくあります。
* HTML における先発グレゴリオ暦
[4] [[HTMLの日付形式]]では[[先発グレゴリオ暦]]が採用されています。
** 仕様書
[REFS[
- [9] '''[CITE@en-US-x-hixie[HTML Standard]] ([TIME[2013-03-09 02:02:33 +09:00]] 版) <http://www.whatwg.org/specs/web-apps/current-work/#proleptic-gregorian-date>'''
- [11] [CITE@en-US-x-hixie[HTML Standard]] ([TIME[2013-03-09 02:02:33 +09:00]] 版) <http://www.whatwg.org/specs/web-apps/current-work/#global-dates-and-times>
]REFS]
** 定義
[12] 「[[先発グレゴリオ暦]]」は次の通り定義されています [SRC[>>9]]。
[FIG[
[8]
>Where this specification refers to the [DFN[proleptic Gregorian calendar]], it means the
modern Gregorian calendar, extrapolated backwards to year 1. A date in the
[[proleptic Gregorian calendar]], sometimes explicitly referred to as a
[DFN[proleptic-Gregorian date]], is one that is described using that calendar even if that calendar was not in use at
the time (or place) in question.
>この仕様書が[DFN[先発グレゴリオ暦]]と言う時、現代[[グレゴリオ暦]]を年1に遡って[[外挿]]したものを意味します。
[[先発グレゴリオ暦]]による[[日付]]は[DFN[先発グレゴリオ日]]と呼ぶこともありますが、
その時間 (や場所) で[[グレゴリオ暦]]を使っていなかったとしても[[グレゴリオ暦]]を使って表した[[日付]]となります。
]FIG]
** UTC 以前の時刻
[10] 「[[先発グレゴリオ暦]]」の定義には含まれていませんが、[[大域的日時]]に関して [[UTC]]
制定以前の[[時刻]]が次のように規定されています [SRC[>>11]]。
[FIG[
[13]
>Times in dates before the formation of UTC in the mid twentieth century [['''must''']] be expressed and interpreted in terms of UT1 (contemporary Earth solar time at the 0° longitude), not UTC (the approximation of UT1 that ticks in SI seconds). Time before the formation of time zones [['''must''']] be expressed and interpeted as UT1 times with explicit time zones that approximate the contemporary difference between the appropriate local time and the time observed at the location of Greenwich, London.
>20世紀中頃に [[UTC]] が制定される以前の[[日付]]における[[時刻]]は [[UTC]]
([[SI]] [[秒]]により進行する [[UT1]] の近似) ではなく [[UT1]] (当時の[[経度]] [[0°]] での地球上の[[太陽時]])
により表現・解釈しなければ[['''なりません''']]。
[[時間帯]]が制定される前の[[時刻]]は、当時の適当な[[地方時]]と[[ロンドン]]の[[グリニッジ]]の位置で観測された[[時刻]]の[[時差]]を近似した[[時間帯]]を明記した
[[UT1]] の[[時刻]]により表現・解釈しなければ[['''なりません''']]。
]FIG]
** 歴史
[REFS[
- [3] [CITE@en[Web Applications 1.0 r5913 Change what was non-normatively implied to be proleptic UTC to explicitly and normatively be proleptic UT1.]] ([TIME[2011-02-25 16:52:00 +09:00]] 版) <http://html5.org/tools/web-apps-tracker?from=5912&to=5913>
- [6] [CITE@en[Web Applications 1.0 r7740 Clarify use of the term 'proleptic'.]] ([TIME[2013-03-08 08:40:00 +09:00]] 版) <http://html5.org/tools/web-apps-tracker?from=7739&to=7740>
]REFS]
[5] >>10 の定義は >>3 で追加されました。
[7] >>8 の定義は >>6 で追加されました。それまでは定義なく使っていました。
* 紀元前
[16] [[紀元前]]の扱いについて、「先発グレゴリオ暦」の定義によって違いがあります。
[17] 主に[[歴史]]の文脈では、([[紀元後]])1年の前の年は「[[紀元前]]1年」 (-1年) とします。
[18] 主に[[計算機]]上の処理では、([[紀元後]])1年の前の年は「0年」、その更に前の年は
「[[紀元前]]1年」 (-1年) とします。
[19] つまり「0年」が存在するかどうかによって、[[紀元前]]の年号が1つずつずれていきます。
[20] [[HTMLの日付形式]]は、([[紀元後]]) 1年以降の日付のみを対象とし、この問題を回避しています。
[21] [[XPath 3.0]] は >>17 の方法を採る [DFN[[[AD]]]] と、 >>18 の方法を採る [DFN[[[ISO]]]]
を定義しています [SRC[>>14]]。
[REFS[
- [14] [CITE@EN[XPath and XQuery Functions and Operators 3.0]]
( ([TIME[2014-04-08 07:02:07 +09:00]] 版))
<http://www.w3.org/TR/xpath-functions-3/#lang-cal-place>
]REFS]
* メモ
[15] [CITE@ja[先発グレゴリオ暦 - Wikipedia]]
( ([TIME[2014-05-01 11:38:14 +09:00]] 版))
<http://ja.wikipedia.org/wiki/%E5%85%88%E7%99%BA%E3%82%B0%E3%83%AC%E3%82%B4%E3%83%AA%E3%82%AA%E6%9A%A6>