feat: 日期增加格式 %Y-%m-%d %H:%M:%S close #723
This commit is contained in:
parent
a03b57b17a
commit
3961feaae6
@ -48,6 +48,7 @@ function M.func(input, seg, env)
|
||||
elseif (input == M.datetime) then
|
||||
local current_time = os.time()
|
||||
yield_cand(seg, os.date('%Y-%m-%dT%H:%M:%S+08:00', current_time))
|
||||
yield_cand(seg, os.date('%Y-%m-%d %H:%M:%S', current_time))
|
||||
yield_cand(seg, os.date('%Y%m%d%H%M%S', current_time))
|
||||
|
||||
-- 时间戳(十位数,到秒,示例 1650861664)
|
||||
|
Loading…
Reference in New Issue
Block a user