提交 7b1f2dab 编写于 作者: W wu-chengwen

feat: fix ci tip

Signed-off-by: Nwu-chengwen <wuchengwen4@huawei.com>
上级 f4656258
...@@ -20,7 +20,7 @@ const twelve = 12; ...@@ -20,7 +20,7 @@ const twelve = 12;
*/ */
export default class DateAndTimeUtil { export default class DateAndTimeUtil {
constructor() { constructor() {
}; }
/** /**
* *
...@@ -31,7 +31,7 @@ export default class DateAndTimeUtil { ...@@ -31,7 +31,7 @@ export default class DateAndTimeUtil {
const hours = datetime.getHours(); const hours = datetime.getHours();
const minutes = datetime.getMinutes(); const minutes = datetime.getMinutes();
return this.concatTime(hours, minutes); return this.concatTime(hours, minutes);
}; }
/** /**
* *
...@@ -46,7 +46,7 @@ export default class DateAndTimeUtil { ...@@ -46,7 +46,7 @@ export default class DateAndTimeUtil {
var now = this.concatTimeWithSeconds(hours, minutes, seconds); var now = this.concatTimeWithSeconds(hours, minutes, seconds);
console.info('now concat: ' + now); console.info('now concat: ' + now);
return now; return now;
}; }
/** /**
* format * format
...@@ -55,7 +55,7 @@ export default class DateAndTimeUtil { ...@@ -55,7 +55,7 @@ export default class DateAndTimeUtil {
*/ */
fill(value) { fill(value) {
return (value > 9 ? '' : '0') + value; return (value > 9 ? '' : '0') + value;
}; }
/** /**
* concat date * concat date
...@@ -64,15 +64,15 @@ export default class DateAndTimeUtil { ...@@ -64,15 +64,15 @@ export default class DateAndTimeUtil {
*/ */
concatDate(year, month, date) { concatDate(year, month, date) {
return year + this.year + month + this.month + date + this.day; return year + this.year + month + this.month + date + this.day;
}; }
concatTime(hours, minutes) { concatTime(hours, minutes) {
return `${this.fill(hours)}:${this.fill(minutes)}`; return `${this.fill(hours)}:${this.fill(minutes)}`;
}; }
concatTimeWithSeconds(hours, minutes, milliseconds) { concatTimeWithSeconds(hours, minutes, milliseconds) {
return `${this.fill(hours)}:${this.fill(minutes)}:${this.fill(milliseconds)}`; return `${this.fill(hours)}:${this.fill(minutes)}:${this.fill(milliseconds)}`;
}; }
/** /**
* Turn to 24-hour clock * Turn to 24-hour clock
...@@ -97,7 +97,7 @@ export default class DateAndTimeUtil { ...@@ -97,7 +97,7 @@ export default class DateAndTimeUtil {
return time; return time;
} }
} }
}; }
/** /**
* Turn to 12-hour clock * Turn to 12-hour clock
...@@ -116,5 +116,5 @@ export default class DateAndTimeUtil { ...@@ -116,5 +116,5 @@ export default class DateAndTimeUtil {
const reduceHours = parseInt(hours) - twelve; const reduceHours = parseInt(hours) - twelve;
return this.afternoon.concat(`${reduceHours}:${minutes}`); return this.afternoon.concat(`${reduceHours}:${minutes}`);
} }
}; }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册