Add plat level score and move classic endpoint
This commit is contained in:
4 files changed
+78
-19
No files matched your search
@@ -21,3 +21,13 @@ export const encodeGJP2 = async (password = '', salt = 'mI29fmAnxgTs') => {
|
||||
.map(b => b.toString(16).padStart(2, '0'))
|
||||
.join('')
|
||||
}
|
||||
export const generateTimeLength = (ms: number): string => {
|
||||
const minutes = Math.floor(ms / 60000)
|
||||
const seconds = Math.floor((ms % 60000) / 1000)
|
||||
const milliseconds = ms % 1000
|
||||
|
||||
const secStr = seconds.toString().padStart(2, '0')
|
||||
const msStr = milliseconds.toString().padStart(3, '0')
|
||||
|
||||
return `${minutes}:${secStr}.${msStr}`
|
||||
}
|
||||
Reference in new issue
Block a user