Add: ranking hour, day, month record php
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
class StringUtil {
|
||||
|
||||
static printMonthDay(date) {
|
||||
let dateTime = new Date(date);
|
||||
return (dateTime.getMonth() + 1) + "월 " + dateTime.getDate() + "일";
|
||||
}
|
||||
|
||||
static getScoreTextWithoutUnit(value) {
|
||||
let number = Math.floor(value);
|
||||
return NumberUtil.numberWithCommas(number);
|
||||
}
|
||||
|
||||
static getScoreTextWithUnit(value) {
|
||||
let number = Math.floor(value);
|
||||
let numberWithCommas = NumberUtil.numberWithCommas(number);
|
||||
|
||||
if(isTypingGame())
|
||||
return numberWithCommas + " 타";
|
||||
else
|
||||
return numberWithCommas + " 점";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user