From 3961feaae665604cf73a330a04c8cf8320a1a237 Mon Sep 17 00:00:00 2001 From: Dvel Date: Mon, 11 Mar 2024 00:15:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A5=E6=9C=9F=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=20%Y-%m-%d=20%H:%M:%S=20=20close=20#723?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/date_translator.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/date_translator.lua b/lua/date_translator.lua index d1c8915..a07a60b 100644 --- a/lua/date_translator.lua +++ b/lua/date_translator.lua @@ -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)