aboutsummaryrefslogtreecommitdiff
path: root/widgets/date.lua
AgeCommit message (Collapse)AuthorFiles
2012-06-18Ported vicious.widgets module to lua 5.2Arvydas Sidorenko1
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com> Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2010-10-04date: turn time widget argument into an offsetAdrian C. (anrxc)1
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-03date: accept time as a widget argumentAdrian C. (anrxc)1
Format custom time for example to calculate time zone differences, New York time relative to me would be widget argument: os.time()-21600
2010-03-14API: transform widgets namespace table to a directoryAdrian C. (anrxc)1