@@ -766,12 +766,13 @@ msgid ""
766
766
"idealized calendar, the current Gregorian calendar indefinitely extended in "
767
767
"both directions."
768
768
msgstr ""
769
+ ":class:`date` オブジェクトは、両方向に無期限に拡張された現在のグレゴリオ暦という理想化された暦の日付 (年月日) を表します。"
769
770
770
771
#: ../../library/datetime.rst:465
771
772
msgid ""
772
773
"January 1 of year 1 is called day number 1, January 2 of year 1 is called "
773
774
"day number 2, and so on. [#]_"
774
- msgstr ""
775
+ msgstr "1 年 1 月 1 日は日番号 1、1 年 1 月 2 日は日番号 2 と呼ばれ、他も同様です。 [#]_ "
775
776
776
777
#: ../../library/datetime.rst:470
777
778
msgid ""
@@ -914,7 +915,7 @@ msgstr "``date2 = date1 + timedelta``"
914
915
915
916
#: ../../library/datetime.rst:580
916
917
msgid "*date2* is ``timedelta.days`` days removed from *date1*. (1)"
917
- msgstr ""
918
+ msgstr "*date2* は *date1* から ``timedelta.days`` 日だけ移動した日付です。(1) "
918
919
919
920
#: ../../library/datetime.rst:583
920
921
msgid "``date2 = date1 - timedelta``"
@@ -950,6 +951,10 @@ msgid ""
950
951
":exc:`OverflowError` is raised if ``date2.year`` would be smaller than "
951
952
":const:`MINYEAR` or larger than :const:`MAXYEAR`."
952
953
msgstr ""
954
+ "*date2* は、 ``timedelta.days > 0`` の場合は進む方向に、 ``timedelta.days < 0`` の場合は戻る方向に移動します。\n"
955
+ "演算後は ``date2 - date1 == timedelta.days`` が成立します。\n"
956
+ "``timedelta.seconds`` および ``timedelta.microseconds`` は無視されます。\n"
957
+ "``date2.year`` が :const:`MINYEAR` になってしまったり、 :const:`MAXYEAR` より大きくなってしまう場合には :exc:`OverflowError` が送出されます。"
953
958
954
959
#: ../../library/datetime.rst:602
955
960
msgid "``timedelta.seconds`` and ``timedelta.microseconds`` are ignored."
@@ -960,6 +965,8 @@ msgid ""
960
965
"This is exact, and cannot overflow. timedelta.seconds and "
961
966
"timedelta.microseconds are 0, and date2 + timedelta == date1 after."
962
967
msgstr ""
968
+ "この演算は厳密で、オーバフローしません。timedelta.seconds および timedelta.microseconds は 0 で、演算後には"
969
+ " date2 + timedelta == date1 となります。"
963
970
964
971
#: ../../library/datetime.rst:609
965
972
msgid ""
@@ -973,17 +980,23 @@ msgid ""
973
980
" is ``==`` or ``!=``. The latter cases return :const:`False` or "
974
981
":const:`True`, respectively."
975
982
msgstr ""
983
+ "言い換えると、 ``date1 < date2`` は ``date1.toordinal() < date2.toordinal()`` と同等です。\n"
984
+ "日付の比較は、比較相手が :class:`date` オブジェクトでない場合には、 :exc:`TypeError` を送出します。\n"
985
+ "ただし、 比較相手に :meth:`timetuple` 属性がある場合は、 ``NotImplemented`` が代わりに送出されます。\n"
986
+ "このフックによって、他の種類の日付オブジェクトに、違う型どうしの比較処理を実装できる可能性が生まれます。\n"
987
+ "相手が :meth:`timetuple` 属性を持っていない場合に :class:`date` と違う型のオブジェクトと比較すると、 ``==`` または ``!=`` の比較でない限り :exc:`TypeError` が送出されます。\n"
988
+ "後者の場合では、それぞれ :const:`False` および :const:`True` が返されます。"
976
989
977
990
#: ../../library/datetime.rst:619
978
991
msgid ""
979
992
"In Boolean contexts, all :class:`date` objects are considered to be true."
980
- msgstr ""
993
+ msgstr "ブール演算コンテキストでは、全ての :class:`.time` オブジェクトは真とみなされます。 "
981
994
982
995
#: ../../library/datetime.rst:625
983
996
msgid ""
984
997
"Return a date with the same value, except for those parameters given new "
985
998
"values by whichever keyword arguments are specified."
986
- msgstr ""
999
+ msgstr "キーワード引数で指定されたパラメータが置き換えられることを除き、同じ値を持つ :class:`date` オブジェクトを返します。 "
987
1000
988
1001
#: ../../library/datetime.rst:628 ../../library/datetime.rst:1823
989
1002
msgid "Example::"
@@ -993,28 +1006,32 @@ msgstr "以下はプログラム例です::"
993
1006
msgid ""
994
1007
"Return a :class:`time.struct_time` such as returned by "
995
1008
":func:`time.localtime`."
996
- msgstr ""
1009
+ msgstr ":func:`time.localtime` が返すような :class:`time.struct_time` を返します。 "
997
1010
998
1011
#: ../../library/datetime.rst:640
999
1012
msgid "The hours, minutes and seconds are 0, and the DST flag is -1."
1000
- msgstr ""
1013
+ msgstr "時分秒が 0 で、 DST フラグが -1 です。 "
1001
1014
1002
1015
#: ../../library/datetime.rst:642 ../../library/datetime.rst:1307
1003
1016
msgid "``d.timetuple()`` is equivalent to::"
1004
- msgstr ""
1017
+ msgstr "``d.timetuple()`` は次の式と等価です:: "
1005
1018
1006
1019
#: ../../library/datetime.rst:646
1007
1020
msgid ""
1008
1021
"where ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` is the "
1009
1022
"day number within the current year starting with ``1`` for January 1st."
1010
1023
msgstr ""
1024
+ "ここで、 ``yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1`` は本年の 1 月 "
1025
+ "1 日を ``1`` としたときの日付番号です。"
1011
1026
1012
1027
#: ../../library/datetime.rst:652
1013
1028
msgid ""
1014
1029
"Return the proleptic Gregorian ordinal of the date, where January 1 of year "
1015
1030
"1 has ordinal 1. For any :class:`date` object *d*, "
1016
1031
"``date.fromordinal(d.toordinal()) == d``."
1017
1032
msgstr ""
1033
+ "先発グレゴリオ暦における日付序数を返します。 1 年の 1 月 1 日が序数 1 となります。任意の :class:`date` オブジェクト *d* "
1034
+ "について、 ``date.fromordinal(d.toordinal()) == d`` となります。"
1018
1035
1019
1036
#: ../../library/datetime.rst:659
1020
1037
msgid ""
@@ -1041,7 +1058,7 @@ msgstr "3 要素のタプル (ISO 年、ISO 週番号、ISO 曜日) を返しま
1041
1058
#: ../../library/datetime.rst:675
1042
1059
msgid ""
1043
1060
"The ISO calendar is a widely used variant of the Gregorian calendar. [#]_"
1044
- msgstr ""
1061
+ msgstr "ISO 暦はグレゴリオ暦の変種として広く用いられています。 [#]_ "
1045
1062
1046
1063
#: ../../library/datetime.rst:677
1047
1064
msgid ""
@@ -1051,40 +1068,47 @@ msgid ""
1051
1068
"week number 1, and the ISO year of that Thursday is the same as its "
1052
1069
"Gregorian year."
1053
1070
msgstr ""
1071
+ "ISO 年は完全な週が 52 週または 53 週あり、週は月曜から始まって日曜に終わります。ISO "
1072
+ "年でのある年における最初の週は、その年の木曜日を含む最初の (グレゴリオ暦での) 週となります。この週は週番号 1 と呼ばれ、この木曜日での ISO "
1073
+ "年はグレゴリオ暦における年と等しくなります。"
1054
1074
1055
1075
#: ../../library/datetime.rst:682
1056
1076
msgid ""
1057
1077
"For example, 2004 begins on a Thursday, so the first week of ISO year 2004 "
1058
1078
"begins on Monday, 29 Dec 2003 and ends on Sunday, 4 Jan 2004::"
1059
1079
msgstr ""
1080
+ "例えば、2004 年は木曜日から始まるため、ISO 年の最初の週は 2003 年 12 月 29 日、月曜日から始まり、2004 年 1 月 4 "
1081
+ "日、日曜日に終わります ::"
1060
1082
1061
1083
#: ../../library/datetime.rst:693
1062
1084
msgid ""
1063
1085
"Return a string representing the date in ISO 8601 format, ``YYYY-MM-DD``::"
1064
- msgstr ""
1086
+ msgstr "日付を ISO 8601 形式の ``YYYY-MM-DD`` で表した文字列を返します:: "
1065
1087
1066
1088
#: ../../library/datetime.rst:699
1067
1089
msgid "This is the inverse of :meth:`date.fromisoformat`."
1068
- msgstr ""
1090
+ msgstr "この関数は :meth:`date.fromisoformat` の逆関数です。 "
1069
1091
1070
1092
#: ../../library/datetime.rst:703
1071
1093
msgid "For a date *d*, ``str(d)`` is equivalent to ``d.isoformat()``."
1072
1094
msgstr ":class:`date` オブジェクト *d* において、``str(d)`` は ``d.isoformat()`` と等価です。"
1073
1095
1074
1096
#: ../../library/datetime.rst:708
1075
1097
msgid "Return a string representing the date::"
1076
- msgstr ""
1098
+ msgstr "日付を表す文字列を返します:: "
1077
1099
1078
1100
#: ../../library/datetime.rst:714 ../../library/datetime.rst:1491
1079
1101
msgid "``d.ctime()`` is equivalent to::"
1080
1102
msgstr ""
1103
+ "ネイティブの C 関数 :c:func:`ctime` (:func:`time.ctime` はこの関数を呼び出しますが、 "
1104
+ ":meth:`date.ctime` は呼び出しません) が C 標準に準拠しているプラットフォームでは、 ``d.ctime()`` は ::"
1081
1105
1082
1106
#: ../../library/datetime.rst:718
1083
1107
msgid ""
1084
1108
"on platforms where the native C :c:func:`ctime` function (which "
1085
1109
":func:`time.ctime` invokes, but which :meth:`date.ctime` does not invoke) "
1086
1110
"conforms to the C standard."
1087
- msgstr ""
1111
+ msgstr "と等価です。 "
1088
1112
1089
1113
#: ../../library/datetime.rst:725
1090
1114
msgid ""
@@ -1103,21 +1127,21 @@ msgid ""
1103
1127
"<f-strings>` and when using :meth:`str.format`. For a complete list of "
1104
1128
"formatting directives, see :ref:`strftime-strptime-behavior`."
1105
1129
msgstr ""
1106
- ":meth:`date.strftime`と等価です。これにより、 :meth:`str.format` の使用時に :class:`.date` "
1130
+ ":meth:`date.strftime` と等価です。これにより、 :meth:`str.format` の使用時に :class:`.date` "
1107
1131
"の書式文字列を指定できます。書式化コードの完全なリストについては :ref:`strftime-strptime-behavior` "
1108
1132
"を参照してください。"
1109
1133
1110
1134
#: ../../library/datetime.rst:740
1111
1135
msgid "Examples of Usage: :class:`date`"
1112
- msgstr ""
1136
+ msgstr "使用例: :class:`date` "
1113
1137
1114
1138
#: ../../library/datetime.rst:742
1115
1139
msgid "Example of counting days to an event::"
1116
1140
msgstr "イベントまでの日数を数える例を示します::"
1117
1141
1118
1142
#: ../../library/datetime.rst:760
1119
1143
msgid "More examples of working with :class:`date`:"
1120
- msgstr ""
1144
+ msgstr "さらなる :class:`date` を使う例: "
1121
1145
1122
1146
#: ../../library/datetime.rst:809
1123
1147
msgid ":class:`.datetime` Objects"
@@ -1128,6 +1152,8 @@ msgid ""
1128
1152
"A :class:`.datetime` object is a single object containing all the "
1129
1153
"information from a :class:`date` object and a :class:`.time` object."
1130
1154
msgstr ""
1155
+ ":class:`.datetime` オブジェクトは :class:`date` オブジェクトおよび :class:`.time` "
1156
+ "オブジェクトの全ての情報が入っている単一のオブジェクトです。"
1131
1157
1132
1158
#: ../../library/datetime.rst:814
1133
1159
msgid ""
@@ -1136,6 +1162,9 @@ msgid ""
1136
1162
"object, :class:`.datetime` assumes there are exactly 3600\\ *24 seconds in "
1137
1163
"every day."
1138
1164
msgstr ""
1165
+ ":class:`date` オブジェクトと同様に、 :class:`.datetime` "
1166
+ "は現在のグレゴリオ暦が両方向に延長されているものと仮定します。また、 :class:`.time` オブジェクトと同様に、 "
1167
+ ":class:`.datetime` は毎日が厳密に 3600\\ *24 秒であると仮定します。"
1139
1168
1140
1169
#: ../../library/datetime.rst:818
1141
1170
msgid "Constructor:"
@@ -1147,6 +1176,9 @@ msgid ""
1147
1176
"``None``, or an instance of a :class:`tzinfo` subclass. The remaining "
1148
1177
"arguments must be integers in the following ranges:"
1149
1178
msgstr ""
1179
+ "*year*, *month*, *day* 引数は必須です。\n"
1180
+ "*tzinfo* は ``None`` または :class:`tzinfo` サブクラスのインスタンスです。\n"
1181
+ "残りの引数は次の範囲の整数でなければなりません:"
1150
1182
1151
1183
#: ../../library/datetime.rst:826
1152
1184
msgid "``MINYEAR <= year <= MAXYEAR``,"