Last Sync: 2026-01-01 23:10 (Mobile)

This commit is contained in:
2026-01-01 23:10:48 +09:00
parent 401f536b3b
commit efefcb9046
2719 changed files with 0 additions and 254620 deletions

View File

@@ -1,20 +0,0 @@
<%*
function getWeekOfMonth(date) {
const year = date.getFullYear();
const month = date.getMonth();
const firstDayOfMonth = new Date(year, month, 1);
const firstWeekdayOfMonth = firstDayOfMonth.getDay();
const dayOfMonth = date.getDate();
const offset = (firstWeekdayOfMonth === 0 ? 6 : firstWeekdayOfMonth - 1);
const weekNumber = Math.floor((dayOfMonth + offset - 1) / 7) + 1;
return weekNumber;
}
const dateStr = "2024-07-18";
const date = new Date(dateStr);
const weekOfMonth = getWeekOfMonth(date);
tR += `${dateStr}는 ${date.getMonth() + 1}월의 ${weekOfMonth}번째 주에 속합니다.`;
%>