[Kde-pim] Updated gb holiday file

John Layt johnlayt at googlemail.com
Fri Jan 15 21:09:57 GMT 2010


On Friday 15 January 2010 18:41:32 Ian Neal wrote:
>   John Layt wrote:
> > Should we also include the new one-off 2012 holidays now while we
> > remember?
> 
> Yes, probably. Would have to remove the normal end of May holiday too
> for that year. Does the relative date syntax let you specify year as
> well as?
> 
> Ian

Not in a relative date, it always assumes the parse year, but in the main date 
clause you can.  Easier is to directly test for (year == 2012).

The following works:

"Spring Bank Holiday" red ((year == 2012) ? [6/4] : [last monday in may])
"Diamond Jubilee Holiday" red 6/5/2012

You can actually make up any valid C expression to calculate what you need.  
Putting square brackets around a date converts it into a number you can do 
comparisons and maths on, round brackets are needed to make a valid C 
expression.

John.
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list