fix
This commit is contained in:
parent
e7a0bba79b
commit
a12e3db815
@ -75,7 +75,7 @@ public class Time{
|
|||||||
return !this.isAfter(t);
|
return !this.isAfter(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void shift(int m){
|
public void addDuratio(int m){
|
||||||
int totm=this.toMinute() + m%(24*60);
|
int totm=this.toMinute() + m%(24*60);
|
||||||
this.m=totm%60;
|
this.m=totm%60;
|
||||||
this.h=(totm/60)%24;
|
this.h=(totm/60)%24;
|
||||||
@ -91,8 +91,8 @@ public class Time{
|
|||||||
this.id="am";
|
this.id="am";
|
||||||
}
|
}
|
||||||
|
|
||||||
public void shift(int h, int m){
|
public void addDuratio(int h, int m){
|
||||||
shift(h*60+m);
|
addDuratio(h*60+m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user