[Remind-Fans] Date::Remind::Event - Manipulate remind output with Perl
David F. Skoll
dfs at roaringpenguin.com
Sat Jun 26 13:43:36 EDT 2010
Mark Lawrence wrote:
> git clone git://github.com/mlawren/date-remind-event.git
> Feedback is welcome.
One comment about a comment in your code:
# There is an extra duration field, not documented in rem2ps
$body =~ s/.*? //;
Actually, that's not true. The remind "-b" option controls whether or
not to include the time in the body. So given the file:
REM 6 July AT 18:00 DURATION 1:00 MSG test
you get these results:
$ remind -b0 -s test.rem 1 july 2010
2010/07/06 * * 60 1080 6:00-7:00pm test
$ remind -b1 -s test.rem 1 july 2010
2010/07/06 * * 60 1080 18:00-19:00 test
$ remind -b2 -s test.rem 1 july 2010
2010/07/06 * * 60 1080 test
-b0 is the default. (Arguably, this sort of processing should be done
by the back-end that produces the calendar rather than by Remind itself,
but it's been this way for ages.)
Regards,
David.
More information about the Remind-fans
mailing list