mirror of
https://github.com/d0zingcat/rime-ice.git
synced 2026-05-13 15:09:58 +00:00
日常更新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user