DATEFMT_GET_ERROR_CODE(3) 1 DATEFMT_GET_ERROR_CODE(3)IntlDateFormatter::getErrorCode - Get the error code from last operation
Object oriented style
SYNOPSIS
public int IntlDateFormatter::getErrorCode (void )
DESCRIPTION
Procedural style
int datefmt_get_error_code (IntlDateFormatter $fmt)
Get the error code from last operation. Returns error code from the last number formatting operation.
PARAMETERS
o $fmt
- The formatter resource.
RETURN VALUES
The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.
EXAMPLES
Example #1
datefmt_get_error_code(3) example
<?php
$fmt = datefmt_create(
'en_US',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN
);
$str = datefmt_format($fmt);
if (!$str) {
printf(
"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) {
printf(
"ERROR: %s (%d)
",
$fmt->getErrorMessage(),
$fmt->getErrorCode()
);
}
?>
The above example will output:
ERROR: U_ZERO_ERROR (0)
SEE ALSO datefmt_get_error_message(3), intl_get_error_code(3), intl_is_failure(3).
PHP Documentation Group DATEFMT_GET_ERROR_CODE(3)
Check Out this Related Man Page
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)
Hello World,
When I issue the errpt command
1581762B 0826133303 T H hdisk1 DISK OPERATION ERROR
C14C511C 0826133303 T H scsi0 ADAPTER ERROR
I found these two unusual errors, wat exactly do these mean ?
Im on an aix box.
Thanks (3 Replies)
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (0 Replies)
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (2 Replies)
I have a command that returns following, but it's missing a title for each line.
YOUR FULL NAME
YOUR ID
YOUR EMAIL
YOUR ADDRESS
YOUR PHONE
Now, I want to add its title to each line:
Name: YOUR FULL NAME
ID: YOUR ID
Email: YOUR EMAIL
Address: YOUR ADDRESS
Phone:... (2 Replies)
I have a code given below...
ERROR=`grep "Job Status" ${LOG_FILE}`
ERROR=${ERROR##*\(}
ERROR=${ERROR%%\)*}
if
then
echo "The job completed successfully"
EXIT_STATUS=0
else
echo "The job failed"
EXIT_STATUS=1
fi
can anybody tell me what is
ERROR=${ERROR##*\(}... (1 Reply)
Hi everyone,
Is there a slick way to determine the FULL name of a script that is running?
The variable ${0} just gives the relative path name.
I guess I could just do the following:
FULL_SCRIPT_NAME=${PWD}${0}Although that's pretty simple is there another way that I am missing?
... (4 Replies)
Hi All,
We are using Citrix MFU 4.
When users try to launch ICFB (Cadence)tool, They get the below error:
Using Cadence version ic5141_isr141
*ERROR* Failed to find either 24-bit TrueColor or 8-bit PseudoColor Visual.
*WARNING* Failed to find either 24-bit TrueColor or 8-pbit PseudoColor... (0 Replies)
Hi. Can someone tell me if the following script that i have made is a script for INCREMENTAL BACKUP or FULL BACKUP. My teacher told me that is doing an FULL BACKUP.
• find /etc /var /home -newer /backups/.backup_reference > /backups/.files_to_archive
• touch /backups/.backup_reference
• tar... (1 Reply)