mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
fix(lua): 修正 PM / AM 的时间展示 (#1507)
This commit is contained in:
@@ -61,11 +61,11 @@ function M.func(input, seg, env)
|
||||
|
||||
yield_cand(seg, os.date('%H:%M', current_time))
|
||||
yield_cand(seg, os.date('%H:%M:%S', current_time))
|
||||
yield_cand(seg, period_name .. " " .. os.date("%H:%M", current_time))
|
||||
yield_cand(seg, os.date("%H:%M %p", current_time))
|
||||
yield_cand(seg, period_name .. " " .. os.date("%I:%M", current_time))
|
||||
yield_cand(seg, os.date("%I:%M %p", current_time))
|
||||
-- 带上时间划分时,很少有带秒数的,暂时注释掉
|
||||
-- yield_cand(seg, period_name .. " " .. os.date("%H:%M:%S", current_time))
|
||||
-- yield_cand(seg, os.date("%H:%M:%S %p", current_time))
|
||||
-- yield_cand(seg, period_name .. " " .. os.date("%I:%M:%S", current_time))
|
||||
-- yield_cand(seg, os.date("%I:%M:%S %p", current_time))
|
||||
|
||||
-- 星期
|
||||
elseif (input == M.week) then
|
||||
|
||||
Reference in New Issue
Block a user