日常更新

This commit is contained in:
Dvel
2023-05-05 15:04:04 +08:00
parent a34c46ad34
commit 299ae93309
12 changed files with 340 additions and 201 deletions

View File

@@ -22,8 +22,7 @@ local function date_translator(input, seg, env)
local cand = Candidate("date", seg.start, seg._end, os.date("%Y.%m.%d"), "")
cand.quality = 100
yield(cand)
local cand = Candidate("date", seg.start, seg._end,
os.date("%Y 年 ") .. tostring(tonumber(os.date("%m"))) .. os.date(" 月 %d 日"), "")
local cand = Candidate("date", seg.start, seg._end, os.date("%Y 年 " .. tostring(tonumber(os.date("%m"))) .. "" .. tostring(tonumber(os.date("%m"))) .. ""), "")
cand.quality = 100
yield(cand)
end