mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-15 12:47:48 +00:00
8 lines
245 B
JavaScript
8 lines
245 B
JavaScript
export const converSecondsToHM = seconds => {
|
|
const d = new Date(seconds * 1000);
|
|
const hh = d.getUTCHours();
|
|
const mm = d.getUTCMinutes();
|
|
return [hh, mm];
|
|
};
|
|
|
|
export const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
|