|
IntlDateFormatter::setCalendardatefmt_set_calendarSets the calendar type used by the formatter DescriptionObject oriented style
bool IntlDateFormatter::setCalendar
( mixed
$which
)Procedural style
bool datefmt_set_calendar
( IntlDateFormatter
$fmt
, mixed $which
)Sets the calendar or calendar type used by the formatter. Parameters
Return Values
Returns Changelog
ExamplesExample #1 datefmt_set_calendar example
<?php Example #2 OO example
<?php The above example will output: calendar of the formatter is : 1 Now calendar of the formatter is : 0 Example #3 Example with IntlCalendar argument
<?php 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
|