static MyTime TimeSinceMidnight(int s) { MyTime res = new MyTime(0, 0, s); res.Normalize(); return(res); }
static MyTime AddSeconds(MyTime t, int s) { t.second += s; t.Normalize(); return(t); }
static MyTime AddOneHour(MyTime t) { t.hour += 1; t.Normalize(); return(t); }
static MyTime AddOneMinute(MyTime t) { t.minute += 1; t.Normalize(); return(t); }
static MyTime AddOneSecond(MyTime t) { t.second += 1; t.Normalize(); return(t); }