11 lines
280 B
Lua
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
|