(3-1)클립 조각, 공백 5프레임 이하 무시하도록 변경

This commit is contained in:
2025-02-20 18:30:42 +09:00
parent e16b158831
commit 3935dd45b1
6 changed files with 39 additions and 16 deletions

12
getToday.js Normal file
View File

@@ -0,0 +1,12 @@
const getToday = () => {
const now = new Date();
const yy = String(now.getFullYear()).slice(2); // 연도 끝 두 자리
const mm = String(now.getMonth() + 1).padStart(2, "0"); // 월 (01~12)
const dd = String(now.getDate()).padStart(2, "0"); // 일 (01~31)
return `${yy}${mm}${dd}`;
};
// 실행
console.log(getToday()); // 예: 240217 (2024년 2월 17일)
module.exports = getToday;