From 7d3e1ee122fbfe562d8094345daadecb03583995 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Tue, 16 Jun 2026 13:39:24 +0200 Subject: [PATCH 1/4] intl: document the procedural style of IntlGregorianCalendar methods --- .../getgregorianchange.xml | 26 +++++++++++---- .../intl/intlgregoriancalendar/isleapyear.xml | 27 ++++++++++----- .../setgregorianchange.xml | 33 +++++++++++++------ 3 files changed, 60 insertions(+), 26 deletions(-) diff --git a/reference/intl/intlgregoriancalendar/getgregorianchange.xml b/reference/intl/intlgregoriancalendar/getgregorianchange.xml index 2d15d52a4ec7..a637ccf31cb9 100644 --- a/reference/intl/intlgregoriancalendar/getgregorianchange.xml +++ b/reference/intl/intlgregoriancalendar/getgregorianchange.xml @@ -8,21 +8,33 @@ &reftitle.description; + &style.oop; public floatIntlGregorianCalendar::getGregorianChange - - - - - &warn.undocumented.func; - + &style.procedural; + + floatintlgregcal_get_gregorian_change + IntlGregorianCalendarcalendar + + + Gets the Gregorian Calendar change date. This is the point at which the + calendar switches from Julian dates to Gregorian dates, expressed as a UNIX + timestamp in milliseconds. It defaults to midnight (UTC) on October 15, 1582. + &reftitle.parameters; - &no.function.parameters; + + + calendar + + An IntlGregorianCalendar instance. + + + diff --git a/reference/intl/intlgregoriancalendar/isleapyear.xml b/reference/intl/intlgregoriancalendar/isleapyear.xml index b963637484c0..ae412266d281 100644 --- a/reference/intl/intlgregoriancalendar/isleapyear.xml +++ b/reference/intl/intlgregoriancalendar/isleapyear.xml @@ -8,27 +8,36 @@ &reftitle.description; + &style.oop; public boolIntlGregorianCalendar::isLeapYear intyear - - - - - &warn.undocumented.func; - + &style.procedural; + + boolintlgregcal_is_leap_year + IntlGregorianCalendarcalendar + intyear + + + Determines whether the given year is a leap year + in the Gregorian calendar. + &reftitle.parameters; + + calendar + + An IntlGregorianCalendar instance. + + year - - - + The year to check. diff --git a/reference/intl/intlgregoriancalendar/setgregorianchange.xml b/reference/intl/intlgregoriancalendar/setgregorianchange.xml index 26678d6fd1d4..1b72a93dfb8e 100644 --- a/reference/intl/intlgregoriancalendar/setgregorianchange.xml +++ b/reference/intl/intlgregoriancalendar/setgregorianchange.xml @@ -3,32 +3,45 @@ IntlGregorianCalendar::setGregorianChange - Set the Gregorian Calendar the change date + Set the Gregorian Calendar change date &reftitle.description; + &style.oop; public boolIntlGregorianCalendar::setGregorianChange floattimestamp - - - - - &warn.undocumented.func; - + &style.procedural; + + boolintlgregcal_set_gregorian_change + IntlGregorianCalendarcalendar + floattimestamp + + + Sets the Gregorian Calendar change date. This is the point at which the + calendar switches from Julian dates to Gregorian dates, expressed as a UNIX + timestamp in milliseconds. + &reftitle.parameters; + + calendar + + An IntlGregorianCalendar instance. + + timestamp - - - + + The Gregorian Calendar change date, expressed as a UNIX timestamp in + milliseconds. + From fecfd16d9b9e2609f70e4152bae8dd4ae8d11490 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Sun, 16 Aug 2026 18:17:54 +0200 Subject: [PATCH 2/4] Update reference/intl/intlgregoriancalendar/getgregorianchange.xml Co-authored-by: Jordi Kroon --- reference/intl/intlgregoriancalendar/getgregorianchange.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/intl/intlgregoriancalendar/getgregorianchange.xml b/reference/intl/intlgregoriancalendar/getgregorianchange.xml index a637ccf31cb9..8c151b00c6de 100644 --- a/reference/intl/intlgregoriancalendar/getgregorianchange.xml +++ b/reference/intl/intlgregoriancalendar/getgregorianchange.xml @@ -20,7 +20,7 @@ Gets the Gregorian Calendar change date. This is the point at which the - calendar switches from Julian dates to Gregorian dates, expressed as a UNIX + calendar switches from Julian dates to Gregorian dates, expressed as a Unix timestamp in milliseconds. It defaults to midnight (UTC) on October 15, 1582. From bac6d4d5aa51be03027cc9c12d64a4d902ba413b Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Sun, 16 Aug 2026 18:18:03 +0200 Subject: [PATCH 3/4] Update reference/intl/intlgregoriancalendar/setgregorianchange.xml Co-authored-by: Jordi Kroon --- reference/intl/intlgregoriancalendar/setgregorianchange.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/intl/intlgregoriancalendar/setgregorianchange.xml b/reference/intl/intlgregoriancalendar/setgregorianchange.xml index 1b72a93dfb8e..5ff86efd5657 100644 --- a/reference/intl/intlgregoriancalendar/setgregorianchange.xml +++ b/reference/intl/intlgregoriancalendar/setgregorianchange.xml @@ -39,7 +39,7 @@ timestamp - The Gregorian Calendar change date, expressed as a UNIX timestamp in + The Gregorian Calendar change date, expressed as a Unix timestamp in milliseconds. From b5363b5bbf7c8b9a4a4149a64f553295de8532a3 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Sun, 16 Aug 2026 18:18:18 +0200 Subject: [PATCH 4/4] Update reference/intl/intlgregoriancalendar/setgregorianchange.xml Co-authored-by: Jordi Kroon --- reference/intl/intlgregoriancalendar/setgregorianchange.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/intl/intlgregoriancalendar/setgregorianchange.xml b/reference/intl/intlgregoriancalendar/setgregorianchange.xml index 5ff86efd5657..2419380cfd23 100644 --- a/reference/intl/intlgregoriancalendar/setgregorianchange.xml +++ b/reference/intl/intlgregoriancalendar/setgregorianchange.xml @@ -21,7 +21,7 @@ Sets the Gregorian Calendar change date. This is the point at which the - calendar switches from Julian dates to Gregorian dates, expressed as a UNIX + calendar switches from Julian dates to Gregorian dates, expressed as a Unix timestamp in milliseconds.