std::ostream& operator<<(std::ostream&out,const MyTime & t)
{
out<<setfill('0')<<setw(2)<<t.hour<<":"<<setfill('0')<<setw(2)<<t.minue<<endl;
return out;
}
MyTime MyTime::operator-(const MyTime& newTime)const
{
return MyTime(abs((this->hour*60+this->minue)-(newTime.hour*60+newTime.minue))/60,
abs((this->hour*60+this->minue)-(newTime.hour*60+newTime.minue))%60);
}