Query: datefmt_get_error_message
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DATEFMT_GET_ERROR_MESSAGE(3) 1 DATEFMT_GET_ERROR_MESSAGE(3) IntlDateFormatter::getErrorMessage - Get the error text from the last operation. Object oriented styleSYNOPSISpublic string IntlDateFormatter::getErrorMessage (void )DESCRIPTIONProcedural style string datefmt_get_error_message (IntlDateFormatter $fmt) Get the error text from the last operation.PARAMETERSo $fmt - The formatter resource.RETURN VALUESDescription of the last error.EXAMPLESExample #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 ALSOdatefmt_get_error_code(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group DATEFMT_GET_ERROR_MESSAGE(3)
Related Man Pages |
---|
intldateformatter.getcalendar(3) - php |
datefmt_get_error_code(3) - php |
datefmt_get_error_message(3) - php |
datefmt_get_pattern(3) - php |
datefmt_parse(3) - php |
Similar Topics in the Unix Linux Community |
---|
errpt |
LS-ERROR 1.0 (Default branch) |
Determine FULL name of current script |
fmt command |
FULL or INCREMENTAL ??? |