diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-03 18:48:02 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-03 18:48:02 +0200 |
commit | c6085eef0648f54e1c70c92c544a89d9bb3d22c2 (patch) | |
tree | 2b15fa1ae18ae11bee2eec16cd64eae0a3ba8377 /README | |
parent | a9d6ea21e62ac612a18fd5f9463fccf739d2f239 (diff) | |
download | vicious-legacy-c6085eef0648f54e1c70c92c544a89d9bb3d22c2.tar.xz |
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
Diffstat (limited to 'README')
-rw-r--r-- | README | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -265,8 +265,10 @@ vicious.widgets.weather {windkmh}, {sky}, {weather}, {tempf}, {tempc}, {humid}, {press} vicious.widgets.date - - provides access to os.date, with optional custom formatting; - provided as the format string + - provides access to os.date, with optional time formatting provided + as the format string + - takes optional time as an argument, for example to calculate + time-zone differences, otherwise it formats the current time - returns the output of os.date(), formatted by provided sequences |