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 styleSYNOPSISpublic IntlCalendar IntlDateFormatter::getCalendarObject (void )DESCRIPTIONProcedural 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.PARAMETERSThis function has no parameters.RETURN VALUESA copy of the internal calendar object used by this formatter.EXAMPLESExample #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 ALSOIntlDateFormatter.getCalendar(3), IntlDateFormatter.setCalendar(3), IntlCalendar. PHP Documentation Group DATEFMT_GET_CALENDAR_OBJECT(3)
Related Man Pages |
---|
datefmt_create(3) - php |
datefmt_format(3) - php |
datefmt_set_calendar(3) - php |
intldateformatter.settimezone(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 |