public static function now()
    {
        $date = new DateTime();
        if (self::$freeze) {
            $date->setTimestamp(self::$freezeDate->getTimestamp());
            $date->setTimezone(self::$freezeDate->getTimezone());
        }
        return new Clock($date);
    }
public static function now()
    {
        $date = new DateTime();
        if (self::$freeze) {
            $date->setTimestamp(self::$freezeDate->getTimestamp());
            $date->setTimezone(self::$freezeDate->getTimezone());
        }
        return new Clock($date);
    }
public static function now ( ) { $ date = new DateTime ( ) ; if ( self :: $ freeze ) { $ date -> setTimestamp ( self :: $ freezeDate -> getTimestamp ( ) ) ; $ date -> setTimezone ( self :: $ freezeDate -> getTimezone ( ) ) ; } return new Clock ( $ date ) ; }
Obtains a Clock set to the current time.
@return Clock
Obtains a Clock set to the current time .