datefmt_get_error_message(3) php man page | unix.com

Man Page: datefmt_get_error_message

Operating Environment: php

Section: 3

DATEFMT_GET_ERROR_MESSAGE(3)						 1					      DATEFMT_GET_ERROR_MESSAGE(3)

IntlDateFormatter::getErrorMessage - Get the error text from the last operation.

	Object oriented style

SYNOPSIS
public string IntlDateFormatter::getErrorMessage (void )
DESCRIPTION
Procedural style string datefmt_get_error_message (IntlDateFormatter $fmt) Get the error text from the last operation.
PARAMETERS
o $fmt - The formatter resource.
RETURN VALUES
Description of the last error.
EXAMPLES
Example #1 datefmt_get_error_message(3) example <?php $fmt = datefmt_create( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); $str = datefmt_format($fmt); if (!$str) { prtinf( "ERROR: %s (%d) ", datefmt_get_error_message($fmt), datefmt_get_error_code($fmt) ); } ?> Example #2 OO example <?php $fmt = new IntlDateFormatter( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); $str = $fmt->format(); if(!$str) { prtinf( "ERROR: %s (%d) ", $fmt->getErrorMessage(), $fmt->getErrorCode() ); } ?> The above example will output: ERROR: U_ZERO_ERROR (0)
SEE ALSO
datefmt_get_error_code(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group DATEFMT_GET_ERROR_MESSAGE(3)
Related Man Pages
datefmt_get_calendar(3) - php
datefmt_create(3) - php
datefmt_get_error_message(3) - php
datefmt_get_timetype(3) - php
datefmt_set_timezone_id(3) - php
Similar Topics in the Unix Linux Community
Adapter Errors and Link Errors
Adapter Errors and Link Errors
Determine FULL name of current script
FULL or INCREMENTAL ???
Formatting paragraphs with fmt with rule