|
IntlDateFormatter::setCalendardatefmt_set_calendarSets the calendar type used by the formatter DescriptionObject-oriented style
public bool IntlDateFormatter::setCalendar(IntlCalendarintnull
$calendar )Procedural style bool datefmt_set_calendar(IntlDateFormatter
$formatter , IntlCalendarintnull $calendar )Sets the calendar or calendar type used by the formatter. Parameters
Return Values
Returns Changelog
ExamplesExample #1 datefmt_set_calendar example
Example #2 OO example
The above example will output: calendar of the formatter is : 1 Now calendar of the formatter is : 0 Example #3 Example with IntlCalendar argument
The above example will output: before: Sunday, March 3, 2013 at 1:00:00 AM Central European Standard Time after: Saturday, RabiÊ» II 20, 1434 at 7:00:00 PM Eastern Standard Time See Also
|