260714_01_ENH: 테스트 서버에서 기동 후 중간 테스트를 위한 커밋

This commit is contained in:
2026-07-14 10:59:07 +09:00
parent a8ce35f5bf
commit 192d47bdb1
180 changed files with 11942 additions and 6007 deletions

18
src/lib/datetime.ts Normal file
View File

@@ -0,0 +1,18 @@
export const RESERVE_MINUTE_STEP = 5
export const getNearestFutureDateTime = (stepMinutes = RESERVE_MINUTE_STEP): string => {
const now = new Date()
const remainder = now.getMinutes() % stepMinutes
if (remainder !== 0) {
now.setMinutes(now.getMinutes() + (stepMinutes - remainder))
}
now.setSeconds(0, 0)
const year = now.getFullYear()
const month = String(now.getMonth() + 1).padStart(2, '0')
const day = String(now.getDate()).padStart(2, '0')
const hour = String(now.getHours()).padStart(2, '0')
const minute = String(now.getMinutes()).padStart(2, '0')
return `${year}-${month}-${day}T${hour}:${minute}`
}