Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

intldateformatter.getcalendar(3) [php man page]

INTLDATEFORMATTER.GETCALENDAR(3)					 1					  INTLDATEFORMATTER.GETCALENDAR(3)

IntlDateFormatter::getCalendar - Get the calendar type used for the IntlDateFormatter

	Object oriented style

SYNOPSIS
int IntlDateFormatter::getCalendar (void ) DESCRIPTION
Procedural style int datefmt_get_calendar (IntlDateFormatter $fmt) PARAMETERS
o $fmt - The formatter resource RETURN VALUES
The calendar type being used by the formatter. Either IntlDateFormatter::TRADITIONAL or IntlDateFormatter::GREGORIAN. EXAMPLES
Example #1 datefmt_get_calendar(3) example <?php $fmt = datefmt_create( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'calendar of the formatter is : ' . datefmt_get_calendar($fmt); datefmt_set_calendar($fmt, IntlDateFormatter::TRADITIONAL); echo 'Now calendar of the formatter is : ' . datefmt_get_calendar($fmt); ?> Example #2 OO example <?php $fmt = new IntlDateFormatter( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'calendar of the formatter is : ' . $fmt->getCalendar(); $fmt->setCalendar(IntlDateFormatter::TRADITIONAL); echo 'Now calendar of the formatter is : ' . $fmt->getCalendar(); ?> The above example will output: calendar of the formatter is : 1 Now calendar of the formatter is : 0 SEE ALSO
datefmt_get_calendar_object(3), datefmt_set_calendar(3), datefmt_create(3). PHP Documentation Group INTLDATEFORMATTER.GETCALENDAR(3)

Check Out this Related Man Page

DATEFMT_GET_TIMEZONE_ID(3)						 1						DATEFMT_GET_TIMEZONE_ID(3)

IntlDateFormatter::getTimeZoneId - Get the timezone-id used for the IntlDateFormatter

	Object oriented style

SYNOPSIS
public string IntlDateFormatter::getTimeZoneId (void ) DESCRIPTION
Procedural style string datefmt_get_timezone_id (IntlDateFormatter $fmt) Get the timezone-id used for the IntlDateFormatter. PARAMETERS
o $fmt - The formatter resource. RETURN VALUES
ID string for the time zone used by this formatter. EXAMPLES
Example #1 datefmt_get_timezone_id(3) example <?php $fmt = datefmt_create( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'timezone_id of the formatter is : ' . datefmt_get_timezone_id($fmt); datefmt_set_timezone_id($fmt, 'CN'); echo 'Now timezone_id of the formatter is : ' . datefmt_get_timezone_id($fmt); ?> Example #2 OO example <?php $fmt = new IntlDateFormatter( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN ); echo 'timezone_id of the formatter is : ' . $fmt->getTimezoneId(); $fmt->setTimezoneId('CN'); echo 'Now timezone_id of the formatter is : ' . $fmt->getTimezoneId(); ?> The above example will output: timezone_id of the formatter is : America/Los_Angeles Now timezone_id of the formatter is : CN SEE ALSO
datefmt_set_timezone_id(3), datefmt_create(3). PHP Documentation Group DATEFMT_GET_TIMEZONE_ID(3)
Man Page

3 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

sort calendar files

I have a few .calendar files /usr/share/calendar they look like 01/01<TAB>Anniversary of the Triumph of the Revolution in Cuba 01/24<TAB>Gold discovered in California at Sutter's Mill, 1848 01/28<TAB>First ski tow, Woodstock VT, 1914 01/28<TAB>Space Shuttle Challenger (51-L) explodes 74... (2 Replies)
Discussion started by: p100x1
2 Replies

3. 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