Search Results
Convert an IntlCalendar into a DateTime object
See Also IntlCalendar::fromDateTime () - Create an IntlCalendar from a DateTime object or string IntlCalendar::getTime () - Get time currently represented by the object IntlCalendar::createInstance () - Create a new IntlCalendar DateTime:__construct ()
Mar 29, 2023 · The IntlCalendar::toDateTime () function is an inbuilt function in PHP which is used to convert an IntlCalendar object into a DateTime object. The DateTime object represents upto second precision with error round less than 1 second.
Valeurs de retour Un objet DateTime avec le même fuseau horaire que l'objet d'origine (en utilisant la base de données PHP au lieu de celle d'ICU) et représentant le même moment, mis à part la précision (précision à la seconde au lieu de milliseconde). Retourne false en cas d'échec.
Return Values A DateTime object with the same timezone as this object (though using PHPʼs database instead of ICUʼs) and the same time, except for the smaller precision (second precision instead of millisecond). Returns false on failure.
(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a2) IntlCalendar::toDateTime — Convert an IntlCalendar into a DateTime object
PHP Manual Function Reference Human Language and Character Encoding Support intl IntlCalendar
