|
IntlCalendar::fromDateTimeCreate an IntlCalendar from a DateTime object or string DescriptionObject oriented style
public static IntlCalendar IntlCalendar::fromDateTime
( mixed
$dateTime
)Procedural style
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). Parameters
Return Values
The created IntlCalendar object or Examples
Example #1 IntlCalendar::fromDateTime
<?php The above example will output: 2013 Februar 28 00:01:02 Deutschland Zeit |