あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
このページのソースの閲覧やコピーができます。
local p = {}
-- 月のコンテンツカレンダーへのリンクを生成
local function getMonthlyCalendarLink()
local currentDate = os.date('!*t') -- UTC時間を取得
-- 年と月を2桁で取得(例:2025年02月)
local year = currentDate.year
local month = string.format('%02d', currentDate.month)
local url = string.format('https://www.h1g.jp/contents/%d年%02d月', year, month)
return string.format('[%s もっと見る]', url)
end
-- 週の開始日(月曜)と終了日(日曜)を取得する関数
local function getWeekRange()
local currentDate = os.date('!*t') -- UTC時間を取得
local currentWeekday = currentDate.wday
local daysToMonday = currentWeekday == 1 and -6 or -(currentWeekday - 2)
000
1:0
このページで使用されているテンプレート: