src/Util/Time.php
public function setTime($hours, $minutes, $seconds)
    {
      // Validate
      self::validateTime($hours, $minutes, $seconds);
      
      // Set internal hours, minutes, seconds and microtime variables
      $this->hours   = (int)$hours;
      $this->minutes = (int)$minutes;
      $this->seconds = (int)$seconds;
      
      if(is_float($seconds))
        $this->microtime = fmod($seconds, floor($seconds));
    }
public function setTime($hours, $minutes, $seconds)
    {
      // Validate
      self::validateTime($hours, $minutes, $seconds);
      
      // Set internal hours, minutes, seconds and microtime variables
      $this->hours   = (int)$hours;
      $this->minutes = (int)$minutes;
      $this->seconds = (int)$seconds;
      
      if(is_float($seconds))
        $this->microtime = fmod($seconds, floor($seconds));
    }
public function setTime ( $ hours , $ minutes , $ seconds ) { // Validate self :: validateTime ( $ hours , $ minutes , $ seconds ) ; // Set internal hours, minutes, seconds and microtime variables $ this -> hours = ( int ) $ hours ; $ this -> minutes = ( int ) $ minutes ; $ this -> seconds = ( int ) $ seconds ; if ( is_float ( $ seconds ) ) $ this -> microtime = fmod ( $ seconds , floor ( $ seconds ) ) ; }
Set the time represented by this Time

@param integer $hours
@param integer $minutes
@param integer $seconds
@return void
Set the time represented by this Time