From 4f7a779f486764b3fa160a6b0eea5d3ffd2f0181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Thu, 29 Oct 2026 23:10:17 +0900 Subject: [PATCH] =?UTF-8?q?calendar=20=E3=82=92=E5=8E=9F=E6=96=87=E3=81=AE?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=81=AB=E8=BF=BD=E5=BE=93=20(7=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../calendar/functions/cal-days-in-month.xml | 36 +++++++++++++++++- reference/calendar/functions/cal-from-jd.xml | 34 ++++++++++++++++- reference/calendar/functions/cal-info.xml | 34 ++++++++++++++++- reference/calendar/functions/cal-to-jd.xml | 38 ++++++++++++++++++- reference/calendar/functions/jdtojewish.xml | 34 ++++++++++++++++- reference/calendar/functions/jewishtojd.xml | 10 ++++- reference/calendar/functions/unixtojd.xml | 18 ++++++++- 7 files changed, 197 insertions(+), 7 deletions(-) diff --git a/reference/calendar/functions/cal-days-in-month.xml b/reference/calendar/functions/cal-days-in-month.xml index aee6f87f978..93dad42529f 100644 --- a/reference/calendar/functions/cal-days-in-month.xml +++ b/reference/calendar/functions/cal-days-in-month.xml @@ -1,6 +1,6 @@ - + cal_days_in_month @@ -60,6 +60,40 @@ + + &reftitle.errors; + + calendar が有効なカレンダー ID でない場合、 + month または year がサポートされている範囲外の場合、 + 指定したカレンダーでは日付が有効でない場合に、 + ValueError をスローします。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + calendar が有効なカレンダー ID でない場合や、日付が有効でない場合に、 + ValueError をスローするようになりました。 + これより前のバージョンでは、E_WARNING が発生し、&false; を返していました。 + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-from-jd.xml b/reference/calendar/functions/cal-from-jd.xml index f9a1459f144..3f0c0b57342 100644 --- a/reference/calendar/functions/cal-from-jd.xml +++ b/reference/calendar/functions/cal-from-jd.xml @@ -1,6 +1,6 @@ - + @@ -62,6 +62,38 @@ + + &reftitle.errors; + + calendar が有効なカレンダー ID でない場合、 + ValueError をスローします。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + calendar が有効なカレンダー ID でない場合、 + ValueError をスローするようになりました。 + これより前のバージョンでは、E_WARNING が発生し、&false; を返していました。 + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-info.xml b/reference/calendar/functions/cal-info.xml index a269bb069b1..465778ed3fc 100644 --- a/reference/calendar/functions/cal-info.xml +++ b/reference/calendar/functions/cal-info.xml @@ -1,6 +1,6 @@ - + cal_info @@ -75,6 +75,38 @@ + + &reftitle.errors; + + calendar が -1 でも有効なカレンダー ID でもない場合、 + ValueError をスローします。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + calendar が有効なカレンダー ID でない場合、 + ValueError をスローするようになりました。 + これより前のバージョンでは、E_WARNING が発生し、&false; を返していました。 + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/cal-to-jd.xml b/reference/calendar/functions/cal-to-jd.xml index e4ca8e51b2b..6d3b5a4699c 100644 --- a/reference/calendar/functions/cal-to-jd.xml +++ b/reference/calendar/functions/cal-to-jd.xml @@ -1,6 +1,6 @@ - + cal_to_jd @@ -81,6 +81,42 @@ + + &reftitle.errors; + + calendar が有効なカレンダー ID でない場合や、 + month が 1 未満の場合は、 + ValueError をスローします。 + month、day、year + のいずれかが 32 ビット整数で扱える範囲を超える場合も同様です。 + それ以外の不正な日付に対しては 0 を返します。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + calendar が有効なカレンダー ID でない場合、 + ValueError をスローするようになりました。 + これより前のバージョンでは、E_WARNING が発生し、&false; を返していました。 + + + + + + + &reftitle.seealso; diff --git a/reference/calendar/functions/jdtojewish.xml b/reference/calendar/functions/jdtojewish.xml index aed62c88c50..fe98fb27d32 100644 --- a/reference/calendar/functions/jdtojewish.xml +++ b/reference/calendar/functions/jdtojewish.xml @@ -1,6 +1,6 @@ - + @@ -66,6 +66,38 @@ + + &reftitle.errors; + + hebrew が &true; で、変換後の年が 1 から 9999 の範囲にない場合、 + ValueError をスローします。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + hebrew が &true; で変換後の年が範囲外の場合、 + ValueError をスローするようになりました。 + これより前のバージョンでは、E_WARNING が発生し、&false; を返していました。 + + + + + + + &reftitle.examples; diff --git a/reference/calendar/functions/jewishtojd.xml b/reference/calendar/functions/jewishtojd.xml index 8fbf6bf5475..b01446f42f2 100644 --- a/reference/calendar/functions/jewishtojd.xml +++ b/reference/calendar/functions/jewishtojd.xml @@ -1,6 +1,6 @@ - + @@ -69,6 +69,14 @@ + + &reftitle.errors; + + year が 32 ビット整数に収まらない場合、 + ValueError をスローします。 + + + &reftitle.seealso; diff --git a/reference/calendar/functions/unixtojd.xml b/reference/calendar/functions/unixtojd.xml index 4d8f5909931..2dfe92e8612 100644 --- a/reference/calendar/functions/unixtojd.xml +++ b/reference/calendar/functions/unixtojd.xml @@ -1,6 +1,6 @@ - + @@ -46,6 +46,14 @@ + + &reftitle.errors; + + timestamp が負の場合、 + ValueError をスローします。 + + + &reftitle.changelog; @@ -57,6 +65,14 @@ + + 8.0.0 + + timestamp が負の場合、 + ValueError をスローするようになりました。 + これより前のバージョンでは、&false; を返していました。 + + 8.0.0