php man page for datefmt_get_calendar_object

Query: datefmt_get_calendar_object

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DATEFMT_GET_CALENDAR_OBJECT(3)						 1					    DATEFMT_GET_CALENDAR_OBJECT(3)

IntlDateFormatter::getCalendarObject - Get copy of formatters calendar object

	Object oriented style

SYNOPSIS
public IntlCalendar IntlDateFormatter::getCalendarObject (void )
DESCRIPTION
Procedural style IntlCalendar datefmt_get_calendar_object (void ) Obtain a copy of the calendar object used internally by this formatter. This calendar will have a type (as in gregorian, japanese, bud- dhist, roc, persian, islamic, etc.) and a timezone that match the type and timezone used by the formatter. The date/time of the object is unspecified.
PARAMETERS
This function has no parameters.
RETURN VALUES
A copy of the internal calendar object used by this formatter.
EXAMPLES
Example #1 datefmt_get_calendar_object(3) example <?php $formatter = IntlDateFormatter::create( "fr_FR@calendar=islamic", NULL, NULL, "GMT-01:00", IntlDateFormatter::TRADITIONAL ); $cal = $formatter->getCalendarObject(); var_dump( $cal->getType(), $cal->getTimeZone(), $cal->getLocale(Locale::VALID_LOCALE) ); The above example will output: string(7) "islamic" object(IntlTimeZone)#3 (4) { ["valid"]=> bool(true) ["id"]=> string(9) "GMT-01:00" ["rawOffset"]=> int(-3600000) ["currentOffset"]=> int(-3600000) } string(5) "fr_FR"
SEE ALSO
IntlDateFormatter.getCalendar(3), IntlDateFormatter.setCalendar(3), IntlCalendar. PHP Documentation Group DATEFMT_GET_CALENDAR_OBJECT(3)
Related Man Pages
datefmt_get_calendar_object(3) - php
intldateformatter.getcalendar(3) - php
datefmt_get_timezone(3) - php
datefmt_set_timezone(3) - php
intldateformatter.gettimezone(3) - php
Similar Topics in the Unix Linux Community
cal
I need an assistance
Nemo file manager organizes around a calendar
Osmo: A daily organizer