From e4d9a5e410aa9215307af02ef3e6582fe48eca0b Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 5 May 2008 23:55:00 +0000 Subject: [PATCH] DateFormatter -> IntlDateFormatter git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@259135 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/intl/dateformatter-constants.xml | 20 +++++------ reference/intl/dateformatter.xml | 24 ++++++------- reference/intl/dateformatter/create.xml | 36 +++++++++---------- reference/intl/dateformatter/format.xml | 26 +++++++------- reference/intl/dateformatter/get-calendar.xml | 20 +++++------ reference/intl/dateformatter/get-datetype.xml | 22 ++++++------ .../intl/dateformatter/get-error-code.xml | 14 ++++---- .../intl/dateformatter/get-error-message.xml | 14 ++++---- reference/intl/dateformatter/get-locale.xml | 18 +++++----- reference/intl/dateformatter/get-pattern.xml | 16 ++++----- reference/intl/dateformatter/get-timetype.xml | 22 ++++++------ .../intl/dateformatter/get-timezone-id.xml | 18 +++++----- reference/intl/dateformatter/is-lenient.xml | 16 ++++----- reference/intl/dateformatter/localtime.xml | 14 ++++---- reference/intl/dateformatter/parse.xml | 18 +++++----- reference/intl/dateformatter/set-calendar.xml | 22 ++++++------ reference/intl/dateformatter/set-lenient.xml | 14 ++++---- reference/intl/dateformatter/set-pattern.xml | 18 +++++----- .../intl/dateformatter/set-timezone-id.xml | 14 ++++---- 19 files changed, 183 insertions(+), 183 deletions(-) diff --git a/reference/intl/dateformatter-constants.xml b/reference/intl/dateformatter-constants.xml index 87b4c3a3be..66530b0505 100644 --- a/reference/intl/dateformatter-constants.xml +++ b/reference/intl/dateformatter-constants.xml @@ -1,6 +1,6 @@ - -
+ +
&reftitle.constants; @@ -9,7 +9,7 @@ - DateFormatter::NONE + IntlDateFormatter::NONE (string) @@ -18,7 +18,7 @@ - DateFormatter::FULL + IntlDateFormatter::FULL (string) @@ -27,7 +27,7 @@ - DateFormatter::LONG + IntlDateFormatter::LONG (string) @@ -36,7 +36,7 @@ - DateFormatter::MEDIUM + IntlDateFormatter::MEDIUM (string) @@ -45,7 +45,7 @@ - DateFormatter::SHORT + IntlDateFormatter::SHORT (string) @@ -56,7 +56,7 @@
-
+
The following int constants are used to specify the calendar. These calendars are all based directly on the Gregorian calendar. @@ -65,7 +65,7 @@ - DateFormatter::TRADITIONAL + IntlDateFormatter::TRADITIONAL (string) @@ -74,7 +74,7 @@ - DateFormatter::GREGORIAN + IntlDateFormatter::GREGORIAN (string) diff --git a/reference/intl/dateformatter.xml b/reference/intl/dateformatter.xml index 9ec9bc9fef..9e4d39a6dc 100644 --- a/reference/intl/dateformatter.xml +++ b/reference/intl/dateformatter.xml @@ -1,13 +1,13 @@ - - - The DateFormatter class - DateFormatter + + + The IntlDateFormatter class + IntlDateFormatter - -
+ +
&reftitle.intro; Date Formatter is a concrete class that enables locale-dependent formatting/parsing @@ -22,33 +22,33 @@
-
+
Class synopsis - DateFormatter + IntlDateFormatter - DateFormatter + IntlDateFormatter Methods + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> + xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intldateformatter')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
-
+
&reftitle.seealso; diff --git a/reference/intl/dateformatter/create.xml b/reference/intl/dateformatter/create.xml index f3cd121f88..fd88632247 100644 --- a/reference/intl/dateformatter/create.xml +++ b/reference/intl/dateformatter/create.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::create + IntlDateFormatter::create datefmt_create - DateFormatter::__construct + IntlDateFormatter::__construct Create a date formatter @@ -14,7 +14,7 @@ static - DateFormatterDateFormatter::create + IntlDateFormatterIntlDateFormatter::create stringlocale integerdatetype integertimetype @@ -26,7 +26,7 @@ Object oriented style (constructor) - DateFormatter::__construct + IntlDateFormatter::__construct stringlocale integerdatetype integertimetype @@ -38,7 +38,7 @@ Procedural style - DateFormatterdatefmt_create + IntlDateFormatterdatefmt_create stringlocale integerdatetype integertimetype @@ -69,7 +69,7 @@ Date type to use (none, short, medium, long, full). This is one of the - DateFormatter constants. + IntlDateFormatter constants. @@ -79,7 +79,7 @@ Time type to use (none, short, medium, long, full). This is one of the - DateFormatter constants. + IntlDateFormatter constants. @@ -97,7 +97,7 @@ Calendar to use for formatting or parsing; default is Gregorian. This is one of the - DateFormatter calendar constants. + IntlDateFormatter calendar constants. @@ -127,14 +127,14 @@ ]]> @@ -145,14 +145,14 @@ echo "Second Formatted output with pattern is ".datefmt_format( $fmt , 0); format(0); -$fmt = new DateFormatter( "de-DE" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN ); +$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ); echo "Second Formatted output is ".$fmt->format(0); -$fmt = new DateFormatter( "en_US" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN ,"MM/dd/yyyy"); +$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ,"MM/dd/yyyy"); echo "First Formatted output with pattern is ".$fmt->format(0); -$fmt = new DateFormatter( "de-DE" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN , "MM/dd/yyyy"); +$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN , "MM/dd/yyyy"); echo "Second Formatted output with pattern is ".$fmt->format(0); ?> ]]> diff --git a/reference/intl/dateformatter/format.xml b/reference/intl/dateformatter/format.xml index 5ff6074286..d21cb1de03 100644 --- a/reference/intl/dateformatter/format.xml +++ b/reference/intl/dateformatter/format.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::format + IntlDateFormatter::format datefmt_format Format the date/time value as a string @@ -12,7 +12,7 @@ Object oriented style - stringDateFormatter::format + stringIntlDateFormatter::format mixedvalue @@ -20,7 +20,7 @@ stringdatefmt_format - DateFormatterfmt + IntlDateFormatterfmt mixedvalue @@ -68,14 +68,14 @@ ]]> @@ -86,14 +86,14 @@ echo "Second Formatted output with pattern is ".datefmt_format( $fmt , 0); format(0); -$fmt = new DateFormatter( "de-DE" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN ); +$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ); echo "Second Formatted output is ".$fmt->format(0); -$fmt = new DateFormatter( "en_US" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN ,"MM/dd/yyyy"); +$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ,"MM/dd/yyyy"); echo "First Formatted output with pattern is ".$fmt->format(0); -$fmt = new DateFormatter( "de-DE" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN , "MM/dd/yyyy"); +$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN , "MM/dd/yyyy"); echo "Second Formatted output with pattern is ".$fmt->format(0); ?> ]]> diff --git a/reference/intl/dateformatter/get-calendar.xml b/reference/intl/dateformatter/get-calendar.xml index 5ce4a193f1..6ce675c3d8 100644 --- a/reference/intl/dateformatter/get-calendar.xml +++ b/reference/intl/dateformatter/get-calendar.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::getCalendar + IntlDateFormatter::getCalendar datefmt_get_calendar - Get the calendar used for the DateFormatter + Get the calendar used for the IntlDateFormatter &reftitle.description; @@ -12,7 +12,7 @@ Object oriented style - integerDateFormatter::getCalendar + integerIntlDateFormatter::getCalendar @@ -20,7 +20,7 @@ integerdatefmt_get_calendar - DateFormatterfmt + IntlDateFormatterfmt @@ -57,9 +57,9 @@ ]]> @@ -70,9 +70,9 @@ echo "Now calendar of the formatter is : ".datefmt_get_calendar($fmt); getCalendar(); -$fmt->setCalendar(DateFormatter::TRADITIONAL); +$fmt->setCalendar(IntlDateFormatter::TRADITIONAL); echo "Now calendar of the formatter is : ".$fmt->getCalendar(); ?> diff --git a/reference/intl/dateformatter/get-datetype.xml b/reference/intl/dateformatter/get-datetype.xml index 8dbdff4541..ef15a695ba 100644 --- a/reference/intl/dateformatter/get-datetype.xml +++ b/reference/intl/dateformatter/get-datetype.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::getDateType + IntlDateFormatter::getDateType datefmt_get_datetype - Get the datetype used for the DateFormatter + Get the datetype used for the IntlDateFormatter &reftitle.description; @@ -12,7 +12,7 @@ Object oriented style - integerDateFormatter::getDateType + integerIntlDateFormatter::getDateType @@ -20,7 +20,7 @@ integerdatefmt_get_datetype - DateFormatterfmt + IntlDateFormatterfmt Returns date type used by the formatter. @@ -47,7 +47,7 @@ &reftitle.returnvalues; - The current date type value of the formatter. + The current date type value of the formatter. @@ -58,10 +58,10 @@ getDateType(); echo "First Formatted output is ".datefmt_format( $fmt , 0); -$fmt = new DateFormatter( "en_US" ,DateFormatter::SHORT,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN); +$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::SHORT,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN); echo "Now datetype of the formatter is : ".$fmt->getDateType(); echo "Second Formatted output is ".datefmt_format( $fmt , 0); diff --git a/reference/intl/dateformatter/get-error-code.xml b/reference/intl/dateformatter/get-error-code.xml index ddb8ab68fa..ffaf6d66c3 100644 --- a/reference/intl/dateformatter/get-error-code.xml +++ b/reference/intl/dateformatter/get-error-code.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::getErrorCode + IntlDateFormatter::getErrorCode datefmt_get_error_code Get the error code from last operation @@ -12,7 +12,7 @@ Object oriented style - integerDateFormatter::getErrorCode + integerIntlDateFormatter::getErrorCode @@ -20,7 +20,7 @@ integerdatefmt_get_error_code - DateFormatterfmt + IntlDateFormatterfmt Get the error code from last operation. @@ -59,7 +59,7 @@ format(); if(!$str) { echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n"; diff --git a/reference/intl/dateformatter/get-error-message.xml b/reference/intl/dateformatter/get-error-message.xml index 58ac010a52..aed1e7024f 100644 --- a/reference/intl/dateformatter/get-error-message.xml +++ b/reference/intl/dateformatter/get-error-message.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::getErrorMessage + IntlDateFormatter::getErrorMessage datefmt_get_error_message Get the error text from the last operation. @@ -12,7 +12,7 @@ Object oriented style - stringDateFormatter::getErrorMessage + stringIntlDateFormatter::getErrorMessage @@ -20,7 +20,7 @@ stringdatefmt_get_error_message - DateFormatterfmt + IntlDateFormatterfmt Get the error text from the last operation. @@ -58,7 +58,7 @@ format(); if(!$str) { echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n"; diff --git a/reference/intl/dateformatter/get-locale.xml b/reference/intl/dateformatter/get-locale.xml index 0239552a1d..184b77d4d9 100644 --- a/reference/intl/dateformatter/get-locale.xml +++ b/reference/intl/dateformatter/get-locale.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::getLocale + IntlDateFormatter::getLocale datefmt_get_locale Get the locale used by formatter @@ -12,7 +12,7 @@ Object oriented style - stringDateFormatter::getLocale + stringIntlDateFormatter::getLocale integerwhich @@ -20,7 +20,7 @@ stringdatefmt_get_locale - DateFormatterfmt + IntlDateFormatterfmt integerwhich @@ -70,11 +70,11 @@ @@ -86,10 +86,10 @@ echo "Second Formatted output is ".datefmt_format( $fmt , 0); getLocale(); echo "First Formatted output is ".$fmt->format(0); -$fmt = new DateFormatter( "de-DE" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN ); +$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ); echo "locale of the formatter is : ".$fmt->getLocale(); echo "Second Formatted output is ".$fmt->format(0); diff --git a/reference/intl/dateformatter/get-pattern.xml b/reference/intl/dateformatter/get-pattern.xml index 6c30e199ca..616c2d621f 100644 --- a/reference/intl/dateformatter/get-pattern.xml +++ b/reference/intl/dateformatter/get-pattern.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::getPattern + IntlDateFormatter::getPattern datefmt_get_pattern - Get the pattern used for the DateFormatter + Get the pattern used for the IntlDateFormatter &reftitle.description; @@ -12,7 +12,7 @@ Object oriented style - stringDateFormatter::getPattern + stringIntlDateFormatter::getPattern @@ -20,7 +20,7 @@ stringdatefmt_get_pattern - DateFormatterfmt + IntlDateFormatterfmt Get pattern used by the formatter. @@ -58,7 +58,7 @@ getPattern(); echo "First Formatted output is ".datefmt_format( $fmt , 0); $fmt->setPattern('yyyymmdd hh:mm:ss z'); diff --git a/reference/intl/dateformatter/get-timetype.xml b/reference/intl/dateformatter/get-timetype.xml index ca59af7c1a..b74990ba51 100644 --- a/reference/intl/dateformatter/get-timetype.xml +++ b/reference/intl/dateformatter/get-timetype.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::getTimeType + IntlDateFormatter::getTimeType datefmt_get_timetype - Get the timetype used for the DateFormatter + Get the timetype used for the IntlDateFormatter &reftitle.description; @@ -12,7 +12,7 @@ Object oriented style - integerDateFormatter::getTimeType + integerIntlDateFormatter::getTimeType @@ -20,7 +20,7 @@ integerdatefmt_get_timetype - DateFormatterfmt + IntlDateFormatterfmt Return time type used by the formatter. @@ -47,7 +47,7 @@ &reftitle.returnvalues; - The current date type value of the formatter. + The current date type value of the formatter. @@ -58,10 +58,10 @@ getTimeType(); echo "First Formatted output is ".datefmt_format( $fmt , 0); -$fmt = new DateFormatter( "en_US" ,DateFormatter::FULL,DateFormatter::SHORT,'America/Los_Angeles',DateFormatter::GREGORIAN); +$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::SHORT,'America/Los_Angeles',IntlDateFormatter::GREGORIAN); echo "Now timetype of the formatter is : ".$fmt->getTimeType(); echo "Second Formatted output is ".datefmt_format( $fmt , 0); diff --git a/reference/intl/dateformatter/get-timezone-id.xml b/reference/intl/dateformatter/get-timezone-id.xml index 17ad500b38..8960914e0f 100644 --- a/reference/intl/dateformatter/get-timezone-id.xml +++ b/reference/intl/dateformatter/get-timezone-id.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::getTimeZoneId + IntlDateFormatter::getTimeZoneId datefmt_get_timezone_id - Get the timezone-id used for the DateFormatter + Get the timezone-id used for the IntlDateFormatter &reftitle.description; @@ -12,7 +12,7 @@ Object oriented style - stringDateFormatter::getTimeZoneId + stringIntlDateFormatter::getTimeZoneId @@ -20,10 +20,10 @@ stringdatefmt_get_timezone_id - DateFormatterfmt + IntlDateFormatterfmt - Get the timezone-id used for the DateFormatter. + Get the timezone-id used for the IntlDateFormatter. @@ -58,7 +58,7 @@ getTimezoneId(); $fmt->setTimezoneId('CN'); echo "Now timezone_id of the formatter is : ".$fmt->getTimezoneId(); diff --git a/reference/intl/dateformatter/is-lenient.xml b/reference/intl/dateformatter/is-lenient.xml index e0f993eee6..c00c5be864 100644 --- a/reference/intl/dateformatter/is-lenient.xml +++ b/reference/intl/dateformatter/is-lenient.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::isLenient + IntlDateFormatter::isLenient datefmt_is_lenient - Get the lenient used for the DateFormatter + Get the lenient used for the IntlDateFormatter &reftitle.description; @@ -12,7 +12,7 @@ Object oriented style - booleanDateFormatter::isLenient + booleanIntlDateFormatter::isLenient @@ -20,7 +20,7 @@ booleandatefmt_is_lenient - DateFormatterfmt + IntlDateFormatterfmt Check if the parser is strict or lenient in interpretting inputs that do not match the pattern exactly. @@ -58,7 +58,7 @@ isLenient() ){ @@ -95,7 +95,7 @@ if( intl_get_error_code() !=0 ){ isLenient() ){ diff --git a/reference/intl/dateformatter/localtime.xml b/reference/intl/dateformatter/localtime.xml index 5b362b549d..35d848dced 100644 --- a/reference/intl/dateformatter/localtime.xml +++ b/reference/intl/dateformatter/localtime.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::localtime + IntlDateFormatter::localtime datefmt_localtime Parse string to a field-based time value @@ -12,7 +12,7 @@ Object oriented style - arrayDateFormatter::localtime + arrayIntlDateFormatter::localtime stringvalue integerparse_pos @@ -21,7 +21,7 @@ arraydatefmt_localtime - DateFormatterfmt + IntlDateFormatterfmt stringvalue integerparse_pos @@ -82,7 +82,7 @@ $parse_pos and consuming as much of the input value as possible. localtime( "Wednesday, December 31, 1969 4:00:00 PM PT",0); echo "First parsed output is "; if ($arr) { diff --git a/reference/intl/dateformatter/parse.xml b/reference/intl/dateformatter/parse.xml index 4cc7bae35b..b1d4a2a5c4 100644 --- a/reference/intl/dateformatter/parse.xml +++ b/reference/intl/dateformatter/parse.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::parse + IntlDateFormatter::parse datefmt_parse Parse string to a timestamp value @@ -12,7 +12,7 @@ Object oriented style - integerDateFormatter::parse + integerIntlDateFormatter::parse stringvalue integerparse_pos @@ -21,7 +21,7 @@ integerdatefmt_parse - DateFormatterfmt + IntlDateFormatterfmt stringvalue integerparse_pos @@ -82,9 +82,9 @@ otherwise it will contain the position at which parsing ended (and the error occ parse("Wednesday, December 31, 1969 4:00:00 PM PT"); -$fmt = new DateFormatter( "de-DE" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN ); +$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ); echo "Second parsed output is ".$fmt->parse("Mittwoch, 31. Dezember 1969 16:00 Uhr GMT-08:00"); ?> ]]> @@ -95,9 +95,9 @@ echo "Second parsed output is ".$fmt->parse("Mittwoch, 31. Dezember 1969 16:00 U ]]> diff --git a/reference/intl/dateformatter/set-calendar.xml b/reference/intl/dateformatter/set-calendar.xml index 183c595e4c..57bf59ccb4 100644 --- a/reference/intl/dateformatter/set-calendar.xml +++ b/reference/intl/dateformatter/set-calendar.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::setCalendar + IntlDateFormatter::setCalendar datefmt_set_calendar sets the calendar used to the appropriate calendar, which must be @@ -12,7 +12,7 @@ Object oriented style - booleanDateFormatter::setCalendar + booleanIntlDateFormatter::setCalendar integerwhich @@ -20,7 +20,7 @@ booleandatefmt_set_calendar - DateFormatterfmt + IntlDateFormatterfmt integerwhich @@ -44,8 +44,8 @@ which - The calendar to use. - Default is DateFormatter::GREGORIAN. + The calendar to use. + Default is IntlDateFormatter::GREGORIAN. @@ -68,9 +68,9 @@ ]]> @@ -81,9 +81,9 @@ echo "Now calendar of the formatter is : ".datefmt_get_calendar($fmt); getCalendar(); -$fmt->setCalendar(DateFormatter::TRADITIONAL); +$fmt->setCalendar(IntlDateFormatter::TRADITIONAL); echo "Now calendar of the formatter is : ".$fmt->getCalendar(); ?> ]]> diff --git a/reference/intl/dateformatter/set-lenient.xml b/reference/intl/dateformatter/set-lenient.xml index df21d9ef21..bf5a4163ce 100644 --- a/reference/intl/dateformatter/set-lenient.xml +++ b/reference/intl/dateformatter/set-lenient.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::setLenient + IntlDateFormatter::setLenient datefmt_set_lenient Set the leniency of the parser @@ -12,7 +12,7 @@ Object oriented style - booleanDateFormatter::setLenient + booleanIntlDateFormatter::setLenient booleanlenient @@ -20,7 +20,7 @@ booleandatefmt_set_lenient - DateFormatterfmt + IntlDateFormatterfmt booleanlenient @@ -70,7 +70,7 @@ isLenient() ){ @@ -107,7 +107,7 @@ if( intl_get_error_code() !=0 ){ isLenient() ){ diff --git a/reference/intl/dateformatter/set-pattern.xml b/reference/intl/dateformatter/set-pattern.xml index ddf8729611..c0ff53f93b 100644 --- a/reference/intl/dateformatter/set-pattern.xml +++ b/reference/intl/dateformatter/set-pattern.xml @@ -1,10 +1,10 @@ - - + + - DateFormatter::setPattern + IntlDateFormatter::setPattern datefmt_set_pattern - Set the pattern used for the DateFormatter + Set the pattern used for the IntlDateFormatter &reftitle.description; @@ -12,7 +12,7 @@ Object oriented style - booleanDateFormatter::setPattern + booleanIntlDateFormatter::setPattern stringpattern @@ -20,11 +20,11 @@ booleandatefmt_set_pattern - DateFormatterfmt + IntlDateFormatterfmt stringpattern - Set the pattern used for the DateFormatter. + Set the pattern used for the IntlDateFormatter. @@ -68,7 +68,7 @@ getPattern(); echo "First Formatted output is ".datefmt_format( $fmt , 0); $fmt->setPattern('yyyymmdd hh:mm:ss z'); diff --git a/reference/intl/dateformatter/set-timezone-id.xml b/reference/intl/dateformatter/set-timezone-id.xml index d87deeb5ed..f8a50d9a60 100644 --- a/reference/intl/dateformatter/set-timezone-id.xml +++ b/reference/intl/dateformatter/set-timezone-id.xml @@ -1,8 +1,8 @@ - - + + - DateFormatter::setTimeZoneId + IntlDateFormatter::setTimeZoneId datefmt_set_timezone_id Sets the time zone to use @@ -12,7 +12,7 @@ Object oriented style - booleanDateFormatter::setTimeZoneId + booleanIntlDateFormatter::setTimeZoneId stringzone @@ -20,7 +20,7 @@ booleandatefmt_set_timezone_id - DateFormatterfmt + IntlDateFormatterfmt stringzone @@ -68,7 +68,7 @@ getTimezoneId(); $fmt->setTimezoneId('CN'); echo "Now timezone_id of the formatter is : ".$fmt->getTimezoneId();