[Remind-Fans] Access to the FROM/SCANFROM, UNTIL/THROUGH, and AT/DURATION in a reminder?
Tim Chase
remind at tim.thechases.com
Sat Dec 28 17:28:39 EST 2019
On 2019-12-28 13:51, Dianne Skoll wrote:
> On 2019-12-27 23:50, Tim Chase wrote:
>
> > Is there any way for an expression or substitution to access the
> > values supplied in a FROM/SCANFROM and UNTIL/THROUGH (or the times
> > provided by the AT & DURATION clauses, or the TAG value)?
>
> Interesting. Yes, I think those could be useful. Currently, the
> only thing accessible to an expression is the AT time (available as
> trigtime()) but I can definitely see how you might want to access
> the other bits and pieces. I'll look into it.
Cool, thanks!
> > SET WinterBreak2019Start date(2019,12,21)
> > SET WinterBreak2019End date(2020,1,5)
>
> You could write those as '2019-12-21' and '2020-01-05' more
> compactly.
Yeah, I've gotten stung a couple times where data of one type was
expected and I had to coerce() it to another, so I tend to explictly
coerce. Digging through my *.rem files, it looks like it was a case
of passing an integer to evaltrig() where
evaltrig(day(SOME_DATE))
failed but
evaltrig(coerce("STRING", day(SOME_DATE)))
worked as expected. So I'm cool with being explicit in my
data-typing.
Thanks again,
-tim
More information about the Remind-fans
mailing list