On Fri, Jan 29, 2010 at 12:12 PM, Nick Hall <nick__hall@hotmail.com> wrote:
Yes, I agree.

You could then do the English Christmas holidays with:


<date name="Christmas Day" value="*/dec/25" type="national" />
<date name="Boxing Day" value="*/dec/26" type="national" />
<date name="Holiday in lieu of Christmas Day" value="*/dec/26" if="dow(y, m, d) == 7" type="national" />
<date name="Holiday in lieu of Christmas Day" value="*/dec/27" if="dow(y, m, d) == 6" type="national" />
<date name="Holiday in lieu of Boxing Day" value="*/dec/27" if="dow(y, m, d) == 1" type="national" />
<date name="Holiday in lieu of Boxing Day" value="*/dec/28" if="dow(y, m, d) > 5" type="national" />

Just to make sure I'm clear: dow() == 1 is Sunday, 7 is Saturday in your examples?

-Doug
 

Nick.


Doug Blank wrote:
On Fri, Jan 29, 2010 at 11:42 AM, Reinhard Müller <reinhard.mueller@bytewise.at <mailto:reinhard.mueller@bytewise.at>> wrote:

   Hi,

   Am Freitag, den 29.01.2010, 11:37 -0500 schrieb Doug Blank:
   > <... if="> dow(y, m, d) == 'sun'"> <... if="> dow(y, m, d) !=
   'sun'">

   I haven't followed the discussion so far, but I would generally
   recommend to make dow(y, m, d) return a number from 1 (monday) to 7
   (sunday). That way you can also do things like dow(y,m,d) > 5.


Good idea!

-Doug
 

   Thanks,
   Reinhard
   --
   Reinhard Müller                    Tel +43 (5577) 89877-0
   BYTEWISE Software GmbH             Fax +43 (5577) 89877-66
   A-6890 Lustenau, Enga 2            http://www.bytewise.at
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Individuelle Datenbanklösungen für GNU/Linux, Windows und
   Mac OSX: http://www.bytewise.at/leistungen/gnue-indiv.html

   ------------------------------------------------------------------------------
   The Planet: dedicated and managed hosting, cloud storage, colocation
   Stay online with enterprise data centers and the best network in
   the business
   Choose flexible plans and management services without long-term
   contracts
   Personal 24x7 support from experience hosting pros just a phone
   call away.
   http://p.sf.net/sfu/theplanet-com
   _______________________________________________
   Gramps-devel mailing list
   Gramps-devel@lists.sourceforge.net
   <mailto:Gramps-devel@lists.sourceforge.net> ------------------------------------------------------------------------


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
------------------------------------------------------------------------

_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel