Changes the current defined minute to defined value.

@param  integer $minute The new minute value. If the value NULL is used it means: Use the minute of NOW()
@return \Beluga\Date\DateTime
488474
public final function setMinute( int $minute = null )
      : DateTime
   {

      if ( \is_null( $minute ) )
      {
         $minute = static::CurrentMinute();
      }

      return $this->setTimeParts( null, $minute );

   }
1158831
private function createDateWithNewTime(int $hour, int $minute, int $second): Date
    {
        return new Date($this->originalDate->handle()->setTime($hour, $minute, $second));
    }
134859
public function hourTo(int $hour): Date
    {
        return $this->createDateWithNewTime(
                $hour,
                $this->originalDate->minutes(),
                $this->originalDate->seconds()
        );
    }
843566
static function create( $hour = -1, $minute = -1, $second = -1 )
    {
        $cur_date = getdate();

        $time = new eZTime();
        $time->setHMS( $hour < 0 ? $cur_date[ 'hours' ] : $hour,
                       $minute < 0 ? $cur_date[ 'minutes' ] : $minute,
                       $second < 0 ? $cur_date[ 'seconds' ] : $second );
        return $time;
    }
105228
public function changeTime( Time $time )
      : DateTime
   {

      return $this->setTime( $time->getHour(), $time->getMinute(), $time->getSecond() );

   }
790663
public function setMin($min) : self
    {
        if (null === $min || (!is_float($min) && !is_int($min))) {
            throw new \InvalidArgumentException('min must be either a float or an integer.');
        }

        $this->min = $min;

        return $this;
    }
92455
public function setSecond( ?int $value = null ) : Time
   {

      if ( null === $value )
      {

         $this->_seconds = static::CurrentSecond();

         return $this;

      }

      $this->_seconds = (int)$value;

      if ( $this->_seconds < 0 )
      {
         $this->_seconds = 0;
      }

      if ( $this->_seconds > 59 )
      {
         $this->_seconds = 59;
      }

      return $this;

   }
154353
public function setMinCol($value)
    {
        if ($value != null) {
            $this->_params['min-col'] = $value;
        } else {
            unset($this->_params['min-col']);
        }
        return $this;
    }
1124727
public function withTimeAt(
        int $hour = null,
        int $minute = null,
        int $second = null,
        int $microsecond = null
    ) : self {
        
        $instance = clone $this;
        
        $hour        = $hour        === null ? $this->hour()        : $hour;
        $minute      = $minute      === null ? $this->minute()      : $minute;
        $second      = $second      === null ? $this->second()      : $second;
        $microsecond = $microsecond === null ? $this->microsecond() : $microsecond;
        
        $instance->date->setTime($hour, $minute, $second);
        
        // There is no API for setting the microsecond explicitly so a new instance has to be constructed.
        $format         = 'Y-m-d H:i:s';
        $value          = $instance->format($format) . '.' . substr($microsecond, 0, 6);
        $instance->date = \DateTime::createFromFormat("$format.u", $value);
        
        return $instance;
    }
247995
public function set($key, $value = null, $minutes = null)
    {
        if ($minutes === null) {
            $minutes = $this->defaults['lifetime'];
        }

        $data = is_array($key) ? $key : [$key => $value];

        foreach ($data as $key => $value) {
            $this->setCookie($key, $value, time() + $minutes);
        }

        return $this;
    }
432777
function setMinute( $min )
    {
        $arr = getdate( $this->DateTime );
        $this->DateTime = mktime( $arr['hours'], $min, $arr['seconds'],
                                  $arr['mon'], $arr['mday'], $arr['year'] );
    }
589155
public function withHour(int $hour) : LocalTime
    {
        if ($hour === $this->hour) {
            return $this;
        }

        Field\HourOfDay::check($hour);

        return new LocalTime($hour, $this->minute, $this->second, $this->nano);
    }
24184
public final function moveMinutes( int $minutes = 1 )
      : DateTime
   {

      return $this->move( new \DateInterval( 'PT' . \abs( $minutes ) . 'M' ), $minutes < 0 );

   }
38906
public static function now(?string $timezone = null): Time
    {
        $timezone = $timezone ?: date_default_timezone_get();
        assert(Validate::isTimezone($timezone), sprintf('Invalid timezone: %s', $timezone));

        $dateTime = new DateTimeImmutable('now', new DateTimeZone($timezone));
        $hour = (int) $dateTime->format('G');
        $minute = (int) $dateTime->format('i');
        $second = (int) $dateTime->format('s');

        return new static($hour, $minute, $second);
    }
105573
public function diff($time) : DateInterval
    {
        $tmp = new self($time);

        return new DateInterval(abs($this->time - $tmp->getUnixTstamp()));
    }
629895
public static function now(Clock $clock = null) : Instant
    {
        if ($clock === null) {
            $clock = DefaultClock::get();
        }

        return $clock->getTime();
    }
1230397
public function minute($value = null)
    {
        if ($value !== null) {
            if ($value > 59 || $value < 0) {
                $this->minute = 0;
            } else {
                $this->minute = $value;
            }
        }
        return $this->minute;
    }