From bed81762e6e307122ceeae88930f0a2b4208713a Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Mon, 6 Nov 2023 13:29:01 +0300 Subject: [PATCH] [PHP 8.3] IntlCalendar setDate / setDateTime --- reference/intl/intlcalendar/setdate.xml | 99 +++++++++++++++ reference/intl/intlcalendar/setdatetime.xml | 126 ++++++++++++++++++++ 2 files changed, 225 insertions(+) create mode 100644 reference/intl/intlcalendar/setdate.xml create mode 100644 reference/intl/intlcalendar/setdatetime.xml diff --git a/reference/intl/intlcalendar/setdate.xml b/reference/intl/intlcalendar/setdate.xml new file mode 100644 index 000000000000..e5b54370809d --- /dev/null +++ b/reference/intl/intlcalendar/setdate.xml @@ -0,0 +1,99 @@ + + + + IntlCalendar::setDate + Set a date fields + + + + &reftitle.description; + + public voidIntlCalendar::setDate + intyear + intmonth + intdayOfMonth + + + Sets a date fields to the given value. + + + + + &reftitle.parameters; + + + year + + + The new value for IntlCalendar::FIELD_YEAR. + + + + + month + + + The new value for IntlCalendar::FIELD_MONTH. + The month sequence is zero-based, i.e., January is represented by 0, + February by 1, …, December is 11 and Undecember (if the calendar has + it) is 12. + + + + + dayOfMonth + + + The new value for IntlCalendar::FIELD_DAY_OF_MONTH. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + <function>IntlCalendar::setDate</function> example + +setDate(2012, 1, 29); +?> +]]> + + + + + + + diff --git a/reference/intl/intlcalendar/setdatetime.xml b/reference/intl/intlcalendar/setdatetime.xml new file mode 100644 index 000000000000..9599e741362e --- /dev/null +++ b/reference/intl/intlcalendar/setdatetime.xml @@ -0,0 +1,126 @@ + + + + IntlCalendar::setDateTime + Set a date and time fields + + + + &reftitle.description; + + public voidIntlCalendar::setDateTime + intyear + intmonth + intdayOfMonth + inthour + intminute + intsecond&null; + + + Sets a date and time fields to the given value. + + + + + &reftitle.parameters; + + + year + + + The new value for IntlCalendar::FIELD_YEAR. + + + + + month + + + The new value for IntlCalendar::FIELD_MONTH. + The month sequence is zero-based, i.e., January is represented by 0, + February by 1, …, December is 11 and Undecember (if the calendar has + it) is 12. + + + + + dayOfMonth + + + The new value for IntlCalendar::FIELD_DAY_OF_MONTH. + + + + + hour + + + The new value for IntlCalendar::FIELD_HOUR_OF_DAY. + + + + + minute + + + The new value for IntlCalendar::FIELD_MINUTE. + + + + + second + + + The new value for IntlCalendar::FIELD_SECOND. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + <function>IntlCalendar::setDateTime</function> example + +setDateTime(2012, 1, 29, 23, 58); +?> +]]> + + + + + + +