时间问题

This commit is contained in:
luying
2022-08-29 16:39:07 +08:00
parent 9da78b5497
commit 0a57b2f00c
6 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ class Time {
public getAfterDayWithHour(day: number = 0, hour = REFRESH_TIME, minute = 0, seconds = 0) {
let t = this._setHour(this.time.getTime(), hour, minute, seconds, 0);
// console.log(t.getTime(), this.time.getTime());
if(this.time.getTime() >= t.getTime()) {
if(this.time.getTime() > t.getTime()) {
let timestamp = t.getTime() + (day + 1) * this.DAY_TO_MS;
return this._returnResult(timestamp);
} else {