Files
dotfiles/.config/yazi/init.lua
2025-05-10 10:18:28 +03:00

11 lines
280 B
Lua

function Linemode:mtime()
local time = math.floor(self._file.cha.mtime or 0)
if time == 0 then
return ""
elseif os.date("%Y", time) == os.date("%Y") then
return os.date("%d %b %H:%M", time)
else
return os.date("%d %b %y", time)
end
end