public function copy($date)
    {
        $this->year = $date->year;
        $this->month = $date->month;
        $this->day = $date->day;
        $this->hour = $date->hour;
        $this->minute = $date->minute;
        $this->second = $date->second;
    }
public function copy($date)
    {
        $this->year = $date->year;
        $this->month = $date->month;
        $this->day = $date->day;
        $this->hour = $date->hour;
        $this->minute = $date->minute;
        $this->second = $date->second;
    }
public function copy ( $ date ) { $ this -> year = $ date -> year ; $ this -> month = $ date -> month ; $ this -> day = $ date -> day ; $ this -> hour = $ date -> hour ; $ this -> minute = $ date -> minute ; $ this -> second = $ date -> second ; }
Copy values from another Date object

Makes this Date a copy of another Date object.

@param object Date $date Date to copy from
Copy values from another Date object