Commit Graph

4 Commits

Author SHA1 Message Date
Arvydas Sidorenko 41cc2c0e27 Ported vicious.widgets module to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-06-18 01:26:31 +02:00
Adrian C. (anrxc) e51d8ac39e date: turn time widget argument into an offset
The os.time() call should not be passed as an argument it self,
because of a chance it will be stored internally and so we would
always get the same time. Instead we can pass time offsets in seconds,
i.e. to go 6 hours forward we can use the widget argument 21600, to go
6 hours back we use -21600 instead.
2010-10-04 22:42:31 +02:00
Adrian C. (anrxc) c6085eef06 date: accept time as a widget argument
Format custom time for example to calculate time zone differences, New
York time relative to me would be widget argument: os.time()-21600
2010-10-03 18:48:02 +02:00
Adrian C. (anrxc) 237470c8f4 API: transform widgets namespace table to a directory 2010-03-14 01:55:33 +01:00