tips:tomorrow_s_day_of_the_week
                no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tips:tomorrow_s_day_of_the_week [2017/01/15 00:53] (current) – created slm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | You can get day name for tomorrow (and and other day after that) by inserting the inserting the following formula into the watch script and calling it when needed | ||
| + |       | ||
| + |         local days = ' | ||
| + |         local found = string.find(days, | ||
| + | local new = 1+((3*n + found-1)%21) | ||
| + |         return string.sub(days, | ||
| + | end | ||
| + | |||
| + | So, if today is Sunday, dwplus(' | ||
| + | |||
| + | Note that this only works in English--you need to change the string days if you are working in another language. | ||
tips/tomorrow_s_day_of_the_week.txt · Last modified:  by slm
                
                