|
IntlCalendar::fromDateTimeCreate an IntlCalendar from a DateTime object or string DescriptionObject-oriented style
public static IntlCalendarnull IntlCalendar::fromDateTime(DateTimestring
$datetime , stringnull $locale = null )Procedural style IntlCalendarnull intlcal_from_date_time(DateTimestring
$datetime , stringnull $locale = null )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
The above example will output: 2013 Februar 28 00:01:02 Deutschland Zeit |