diff --git a/reference/intl/intlgregoriancalendar/createfromdate.xml b/reference/intl/intlgregoriancalendar/createfromdate.xml new file mode 100644 index 000000000000..ee071c02eca3 --- /dev/null +++ b/reference/intl/intlgregoriancalendar/createfromdate.xml @@ -0,0 +1,181 @@ + + + + IntlGregorianCalendar::createFromDate + Create a new IntlGregorianCalendar instance from date + + + + &reftitle.description; + + public staticIntlGregorianCalendar::createFromDate + intyear + intmonth + intdayOfMonth + + + Creates a new IntlGregorianCalendar instance from date. + + + + + &reftitle.parameters; + + + year + + + The new value for IntlGregorianCalendar::FIELD_YEAR. + + + + + month + + + The new value for IntlGregorianCalendar::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 IntlGregorianCalendar::FIELD_DAY_OF_MONTH. + + + + + + + + &reftitle.returnvalues; + + Returns a new IntlGregorianCalendar instance. + + + + + &reftitle.examples; + + + <methodname>IntlGregorianCalendar::createFromDate</methodname> example + + +]]> + + &example.outputs.similar; + + + bool(true) + ["type"]=> + string(9) "gregorian" + ["timeZone"]=> + array(4) { + ["valid"]=> + bool(true) + ["id"]=> + string(16) "Europe/Amsterdam" + ["rawOffset"]=> + int(3600000) + ["currentOffset"]=> + int(3600000) + } + ["locale"]=> + string(11) "en_US_POSIX" + ["fields"]=> + array(23) { + ["era"]=> + int(1) + ["year"]=> + int(2023) + ["month"]=> + int(11) + ["week of year"]=> + int(51) + ["week of month"]=> + int(4) + ["day of year"]=> + int(357) + ["day of month"]=> + int(23) + ["day of week"]=> + int(7) + ["day of week in month"]=> + int(4) + ["AM/PM"]=> + int(0) + ["hour"]=> + int(0) + ["hour of day"]=> + int(0) + ["minute"]=> + int(0) + ["second"]=> + int(0) + ["millisecond"]=> + int(0) + ["zone offset"]=> + int(3600000) + ["DST offset"]=> + int(0) + ["year for week of year"]=> + int(2023) + ["localized day of week"]=> + int(7) + ["extended year"]=> + int(2023) + ["julian day"]=> + int(2460302) + ["milliseconds in day"]=> + int(0) + ["is leap month"]=> + int(0) + } +} +]]> + + + + + + + &reftitle.seealso; + + + IntlGregorianCalendar::createFromDateTime + + + + + + diff --git a/reference/intl/intlgregoriancalendar/createfromdatetime.xml b/reference/intl/intlgregoriancalendar/createfromdatetime.xml new file mode 100644 index 000000000000..5e9804f4e50e --- /dev/null +++ b/reference/intl/intlgregoriancalendar/createfromdatetime.xml @@ -0,0 +1,208 @@ + + + + IntlGregorianCalendar::createFromDateTime + Create a new IntlGregorianCalendar instance from date and time + + + + &reftitle.description; + + public staticIntlGregorianCalendar::createFromDateTime + intyear + intmonth + intdayOfMonth + inthour + intminute + intsecond&null; + + + Creates a new IntlGregorianCalendar instance from date and time. + + + + + &reftitle.parameters; + + + year + + + The new value for IntlGregorianCalendar::FIELD_YEAR. + + + + + month + + + The new value for IntlGregorianCalendar::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 IntlGregorianCalendar::FIELD_DAY_OF_MONTH. + + + + + hour + + + The new value for IntlGregorianCalendar::FIELD_HOUR_OF_DAY. + + + + + minute + + + The new value for IntlGregorianCalendar::FIELD_MINUTE. + + + + + second + + + The new value for IntlGregorianCalendar::FIELD_SECOND. + + + + + + + + &reftitle.returnvalues; + + Returns a new IntlGregorianCalendar instance. + + + + + &reftitle.examples; + + + <methodname>IntlCalendar::setDateTime</methodname> example + + +]]> + + &example.outputs.similar; + + + bool(true) + ["type"]=> + string(9) "gregorian" + ["timeZone"]=> + array(4) { + ["valid"]=> + bool(true) + ["id"]=> + string(16) "Europe/Amsterdam" + ["rawOffset"]=> + int(3600000) + ["currentOffset"]=> + int(3600000) + } + ["locale"]=> + string(11) "en_US_POSIX" + ["fields"]=> + array(23) { + ["era"]=> + int(1) + ["year"]=> + int(2023) + ["month"]=> + int(11) + ["week of year"]=> + int(51) + ["week of month"]=> + int(4) + ["day of year"]=> + int(357) + ["day of month"]=> + int(23) + ["day of week"]=> + int(7) + ["day of week in month"]=> + int(4) + ["AM/PM"]=> + int(1) + ["hour"]=> + int(0) + ["hour of day"]=> + int(12) + ["minute"]=> + int(0) + ["second"]=> + int(0) + ["millisecond"]=> + int(0) + ["zone offset"]=> + int(3600000) + ["DST offset"]=> + int(0) + ["year for week of year"]=> + int(2023) + ["localized day of week"]=> + int(7) + ["extended year"]=> + int(2023) + ["julian day"]=> + int(2460302) + ["milliseconds in day"]=> + int(43200000) + ["is leap month"]=> + int(0) + } +} +]]> + + + + + + + &reftitle.seealso; + + + IntlGregorianCalendar::createFromDate + + + + + + diff --git a/reference/intl/versions.xml b/reference/intl/versions.xml index 7c68c5324145..6b4b422cbe6f 100644 --- a/reference/intl/versions.xml +++ b/reference/intl/versions.xml @@ -282,6 +282,8 @@ + +