|
IntlDateFormatter::createdatefmt_createIntlDateFormatter::__constructCreate a date formatter BeschreibungObjektorientierter Stil
public
static
IntlDateFormatter IntlDateFormatter::create
( string
$locale
, int $datetype
, int $timetype
[, mixed $timezone = NULL
[, mixed $calendar = NULL
[, string $pattern = ""
]]] )Objektorientierter Stil (constructor)
public
IntlDateFormatter::__construct
( string
$locale
, int $datetype
, int $timetype
[, mixed $timezone = NULL
[, mixed $calendar = NULL
[, string $pattern = ""
]]] )Prozeduraler Stil
IntlDateFormatter datefmt_create
( string
$locale
, int $datetype
, int $timetype
[, mixed $timezone = NULL
[, mixed $calendar = NULL
[, string $pattern = ""
]]] )Create a date formatter. Parameter-Liste
Rückgabewerte
The created IntlDateFormatter or Changelog
BeispieleBeispiel #1 datefmt_create example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
First Formatted output is Wednesday, December 31, 1969 4:00:00 PM PT
Second Formatted output is Mittwoch, 31. Dezember 1969 16:00 Uhr GMT-08:00
First Formatted output with pattern is 12/31/1969
Second Formatted output with pattern is 12/31/1969
Siehe auch
|