[Chugalug] Calculating the next Thanksgivukkah

Robert A. Kelly III bluethegrappler at gmail.com
Wed Oct 9 00:23:56 UTC 2013


On 10/08/2013 06:39 PM, Robert A. Kelly III wrote:
> On 10/08/2013 03:34 PM, Robert A. Kelly III wrote:
>> I've been toying with calculating the next Thanksgivukkah (the date when
>> the first day of Hanukkah coincides with Thanksgiving) using remind.
<snip>
> FSET isHanukkah(date) \
>      trigger(date) == trigger(hebdate(25, "Kislev", trigdate()))
> REM Dec Thurs 1 -7 SATISFY isHanukkah(trigdate())
> IF trigvalid()
>    REM [trigdate()] MSG Thanksgivukkah
> ENDIF
> 
> Then you can list all occurrences of Thanksgivukkah for the next century
> like so:
> 
> $ remind -s1200 -x1200 /path/to/Thanksgivukkah-reminder-file
> 2013/11/28 * * * * Thanksgivukkah
> 2108/11/29 * * * * Thanksgivukkah

FAIL!

I used the pre-1942 definition of Thanksgiving. Once I correct it to:

FSET isHanukkah(date) \
     trigger(date) == trigger(hebdate(25, "Kislev", trigdate()))
REM Nov Thurs 22 SATISFY isHanukkah(trigdate())
IF trigvalid()
   REM [trigdate()] MSG Thanksgivukkah
ENDIF

I get a date overflow error before I find another Thanksgivukkah.



More information about the Chugalug mailing list