|
IntlCalendar::fromDateTimeCreate an IntlCalendar from a DateTime object or string BeschreibungObjektorientierter Stil
public static IntlCalendar IntlCalendar::fromDateTime
( mixed
$dateTime
)Prozeduraler Stil
IntlCalendar intlcal_from_date_time
( mixed
$dateTime
)Creates an IntlCalendar object either from a DateTime object or from a string from which a DateTime object can be built. The new calendar will represent not only the same instant as the given DateTime (subject to precision loss for dates very far into the past or future), but also the same timezone (subject to the caveat that different timezone databases will be used, and therefore the results may differ). Parameter-Liste
Rückgabewerte
The created IntlCalendar object or Beispiele
Beispiel #1 IntlCalendar::fromDateTime
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 2013 Februar 28 00:01:02 Deutschland Zeit |