[Remind-Fans] displaying AT time

Paul Pelzl pelzlpj at eecs.umich.edu
Thu Dec 21 17:37:56 EST 2006


On Thu, Dec 21, 2006 at 09:47:07PM +0000, Andrew Ho wrote:
> Hi,
> 
> I'm trying to get 'rem' to display the time of a reminder, such that if 
> I have:
> 
> REM 1 Feb 2007 AT 09:00 MSG Meeting%
> 
> then the command 'rem 1 Feb 2007' will display:
> 
> 09:00 Meeting
> 
> This is relatively trivial if I simply define the following:
> 
> FSET MSGPREFIX(x) trigtime() + " "
> 
> However, this chokes when I have an "all day" reminder (in other words, one 
> where I don't define an AT).  It displays the last AT time that was set; 
> I'd ideally like it not to display anything.
> 
> Any pointers would be greatly appreciated,

You might consider a different approach.  The "simple calendar" Remind
output ("rem -s") can provide the timestamps without any extra work on
your part.  You just need to reformat the calendar a bit before
displaying it.  Example:

   $ rem -s -b1 | grep `date +"%y/%m/%d"` | cut -d " " -f "6-"

Paul





More information about the Remind-fans mailing list