private function currentDateTime()
    {
        $dateTime = \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true)));
        $dateTime->setTimezone(new \DateTimeZone(date_default_timezone_get()));

        return $dateTime;
    }
private function currentDateTime()
    {
        $dateTime = \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true)));
        $dateTime->setTimezone(new \DateTimeZone(date_default_timezone_get()));

        return $dateTime;
    }
private function currentDateTime ( ) { $ dateTime = \ DateTime :: createFromFormat ( 'U.u' , sprintf ( '%.6F' , microtime ( true ) ) ) ; $ dateTime -> setTimezone ( new \ DateTimeZone ( date_default_timezone_get ( ) ) ) ; return $ dateTime ; }
Get a instance of \DateTime with the current data time including milliseconds.

@return \DateTime
Get a instance of \ DateTime with the current data time including milliseconds .