public static function getNowDateTime()
    {
        if (PHP_VERSION_ID < 70100) {
            $now = \DateTime::createFromFormat('U.u', \sprintf('%.6F', microtime(true)));
        } else {
            $now = new \DateTime(null);
        }

        return $now;
    }