mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
更新年月日日期格式 (#225)
This commit is contained in:
2
rime.lua
2
rime.lua
@@ -21,7 +21,7 @@ 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 年 %m 月 %d 日"), "")
|
||||
local cand = Candidate("date", seg.start, seg._end, os.date("%Y 年 ")..tostring(tonumber(os.date("%m")))..os.date(" 月 %d 日"), "")
|
||||
cand.quality = 100
|
||||
yield(cand)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user