diff options
Diffstat (limited to 'lua/extregs/timestamp.lua')
| -rw-r--r-- | lua/extregs/timestamp.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/extregs/timestamp.lua b/lua/extregs/timestamp.lua new file mode 100644 index 0000000..6405285 --- /dev/null +++ b/lua/extregs/timestamp.lua @@ -0,0 +1,6 @@ +local util = require('extregs.util') +local M = {} +function M.get_provider(cfg) + return util.readonly(function() return os.date(cfg.format) end) +end +return M |