[Remind-Fans] Function to extract the start of an UNTIL/THROUGH range?

Tim Chase remind at tim.thechases.com
Wed Jul 13 14:01:37 EDT 2022


The goal is to be able to create events for things like airline
travel and have them show the event on every day of the range, but
show the travel details only on the end-dates, so something like


  FSET if_end_days(s) iif($T == magic() || $T == triguntil(), s, "")

  REM Jul 12 2022 THROUGH Jul 19 2022 MSG On vacation [ \
    if_end_days("%_Flight 1234 DAL->BWI departs 10:15, arrives 2:35"\
     + "%_Flight 4321 BWI->DAL departs 9:25, arrives 11:08")][\

Just in case that makes the context a little more sensible.

-tkc

On Wed, Jul 13, 2022 at 05:25:50PM +0000, Tim Chase wrote:
> If I have a reminder like
> 
>   REM Jul 12 2022 THROUGH Jul 19 2022 \
>     MSG Runs [magic()] through [triguntil()]
> 
> and I run it today (2022-7-13), what I'd like is
> 
>   $ rem
>   Reminders for Wednesday, 13th July, 2022 (today):
> 
>   Runs 2022-07-12 through 2022-07-19
> 
> with the first date being the one defined as the beginning of the
> event (2022-7-12) rather than today's date (2022-7-13).  I've tried
> $T, $U, and a scattering of other trig*() functions like trigfrom()
> but haven't been able to find one that extracts that first/specified
> date.
> 
> Is there something I'm missing?
> 
> Thanks!
> 
> -tkc
> 
> 
> 
> 
> 


More information about the Remind-fans mailing list