Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

datefmt_get_error_message(3) [php 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)

Check Out this Related Man Page

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)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

errpt

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)
Discussion started by: cubicle^dweller
3 Replies

2. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ 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)
Discussion started by: mcastill66
0 Replies

3. AIX

Adapter Errors and Link Errors

$ 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)
Discussion started by: mcastill66
2 Replies

4. Shell Programming and Scripting

Insert Title To Each Lines

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)
Discussion started by: tqlam
2 Replies

5. Shell Programming and Scripting

Script help needed

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)
Discussion started by: Sagarddd
1 Replies

6. UNIX for Dummies Questions & Answers

Determine FULL name of current script

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)
Discussion started by: msb65
4 Replies

7. UNIX for Advanced & Expert Users

fmt command

Hello, I have file which needs to be splitted into multiple line with each line holding 80 bytes. Im using the fmt command as fmt -w 80 {filename} > {out filename} but getting the error fmt: Too many characters in a word. Thanks Use code tags, ty. (7 Replies)
Discussion started by: atlantis
7 Replies

8. Virtualization and Cloud Computing

ICFB ERROR

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)
Discussion started by: mspatil0037
0 Replies

9. Shell Programming and Scripting

FULL or INCREMENTAL ???

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)
Discussion started by: bender-alex
1 Replies

10. Shell Programming and Scripting

Formatting paragraphs with fmt with rule

Hi, i know that i can format a whole file using fmt -w 78 file > file_new Now, i would like to implement a rule in the following way: - If a paragraph starts with % (and ends with %), the paragraph should remain unchanged. - Otherwise the command stated above should be applied to the... (4 Replies)
Discussion started by: johnlocke85
4 Replies

11. AIX

Receiving: 4B436A3D 0313233216 T H fscsi0 LINK ERROR

Hey All, I'm receiving the following error off of a Power5 9133-55A after I write 2-5 files to the LUN: 4B436A3D 0313233216 T H fscsi0 LINK ERROR I can create the filesystem, volume groups etc etc. All goes well until there is sustained activity to the LUN then the above error... (23 Replies)
Discussion started by: Devyn
23 Replies