[Remind-Fans] Calculate timediff to next occuring timed event
Oliver
ngreply at gmx.net
Tue Nov 8 17:09:41 EST 2005
Thanks Paul,
your hint will be a good starting point. I remember the man page
there is a formating option for 24h time format. Maybe your patch
would make things easier for me. Anyway it's a good challange for me
to dig deeper into shell scripting. Thanks for the offer.
* Paul Pelzl <pelzlpj at eecs.umich.edu> [2005-11-08 21:34]:
> On Tue, Nov 08, 2005 at 08:37:51PM +0000, Oliver wrote:
> > Does anybody has a hint, how to parse the time for the next occuring
> > event? To calculate the timediff between now and the event will be
> > other scripting stuff I guess.
>
> This requires a bit of scripting. "rem -s -g" has the information you
> need; you can pull out the date (the 1st field) and the start time (the
> 5th field) of each reminder, and find the first reminder falling after
> the current time. If you use an option like "-s+16" then you should
> catch the next reminder as long as it falls within the next 16 weeks.
>
More information about the Remind-fans
mailing list