src/Utils/Date.php
public static function getDateTime()
    {
        $dt = \DateTime::createFromFormat('U.u', microtime(true));
        $dt->setTimezone(new \DateTimeZone(date('e')));

        return $dt;
    }
public static function getDateTime()
    {
        $dt = \DateTime::createFromFormat('U.u', microtime(true));
        $dt->setTimezone(new \DateTimeZone(date('e')));

        return $dt;
    }
public static function getDateTime ( ) { $ dt = \ DateTime :: createFromFormat ( 'U.u' , microtime ( true ) ) ; $ dt -> setTimezone ( new \ DateTimeZone ( date ( 'e' ) ) ) ; return $ dt ; }
Returns DateTime object.

@return \DateTime
Returns DateTime object .