[Remind-Fans] Behind the scenes.

David F. Skoll dfs at roaringpenguin.com
Thu Oct 30 18:11:46 EDT 2014


On Thu, 30 Oct 2014 15:30:50 -0400
"Theodore M Rolle, Jr." <stercor at gmail.com> wrote:

> I need to convert a date specification to a hard date.
> 
> Specification:
>    2nd & 4th Thu => November 13, 27
> 
> Intended use is to populate a PHP-generated calendar.

This is ugly, but you can do something like this (shell script for the
example... you'd have to rewrite in PHP):

    SECOND_THU=`(echo 'banner %'; echo 'msg [evaltrig("Thu Nov 8")]%') | remind -`
    echo $SECOND_THU

I wouldn't go near that with a 10-foot pole in production code, though... :)

Regards,

David.


More information about the Remind-fans mailing list