diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 01:55:33 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 01:55:33 +0100 |
commit | 237470c8f45190b213e3a173ce6ae1a74b3e11fe (patch) | |
tree | 7f53c8144761947d4bde20715bcad34f4be0d6c0 /date.lua | |
parent | 9a82d4113a8271b7dfc7506f2b07379e3ede89a8 (diff) | |
download | vicious-legacy-237470c8f45190b213e3a173ce6ae1a74b3e11fe.tar.xz |
API: transform widgets namespace table to a directory
Diffstat (limited to 'date.lua')
-rw-r--r-- | date.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/date.lua b/date.lua deleted file mode 100644 index f6295ec..0000000 --- a/date.lua +++ /dev/null @@ -1,23 +0,0 @@ ---------------------------------------------------- --- Licensed under the GNU General Public License v2 --- * (c) 2010, Adrian C. <anrxc@sysphere.org> --- * (c) 2009, Lucas de Vries <lucas@glacicle.com> ---------------------------------------------------- - --- {{{ Grab environment -local os = { date = os.date } -local setmetatable = setmetatable --- }}} - - --- Date: provides access to os.date with optional custom formatting -module("vicious.date") - - --- {{{ Date widget type -local function worker(format) - return os.date(format or nil) -end --- }}} - -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) |