[Remind-Fans] Strange schedule
hymie at lactose.homelinux.net
hymie at lactose.homelinux.net
Sat Sep 3 07:11:57 EDT 2016
Now that I'm half-awake, I came up with this:
===
SET cycle (trigdate() - date(2016,8,15) +1) % 12 + 1
if (cycle <= 7)
rem On [cycle]
else
rem Off [cycle - 7]
endif
===
The date (2016-08-15) is the first "On" day.
This does not work on the first day of each month.
.reminders.foo(1): `-': Type mismatch
Maybe Dianne can figure out why. But it works every day after that.
--hymie! http://lactose.homelinux.net/~hymie hymie at lactose.homelinux.net
>On Sat, Sep 03, 2016 at 12:30:50AM -0400, Theodore M Rolle Jr wrote:
>> Thank you!
>>
>> I tried it, but it didn't provide dates for today (2016-09-02)
>>
>> On 09/02/2016 10:10 PM, hymie! wrote:
>> > rem 15 aug 2016 *12 msg On 1
>> > rem 21 aug 2016 *12 msg On 7
>> > rem 22 aug 2016 *12 msg Off 1
>> > rem 26 aug 2016 *12 msg Off 5
More information about the Remind-fans
mailing list