|
IntlDateFormatter::setCalendardatefmt_set_calendarSets the calendar type used by the formatter BeschreibungObjektorientierter Stil
bool IntlDateFormatter::setCalendar
( mixed
$which
)Prozeduraler Stil
bool datefmt_set_calendar
( IntlDateFormatter
$fmt
, mixed $which
)Sets the calendar or calendar type used by the formatter. Parameter-Liste
Rückgabewerte
Gibt bei Erfolg Changelog
BeispieleBeispiel #1 datefmt_set_calendar example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: calendar of the formatter is : 1 Now calendar of the formatter is : 0 Beispiel #3 Example with IntlCalendar argument
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 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 Siehe auch
|