[Bug 272750] Update Argentina holidays rule file
dv5a at dc.uba.ar
dv5a at dc.uba.ar
Thu Jan 5 21:43:31 GMT 2012
https://bugs.kde.org/show_bug.cgi?id=272750
--- Comment #7 from <dv5a dc uba ar> 2012-01-05 21:43:31 ---
Thanks!!
It is a little tricky. "Dia de San Martin" is always 3rd Monday of august
(every year), but in 2011 it was approved a law that only that year it will be
on 4th Monday of august.
I am doing some date arithmetic there. (year == 2011) results in 1 for 2011 and
0 otherwise.
So, For year==2011 =>
(third + (year == 2011)) monday in august
(third + (2011 == 2011)) monday in august
(third + (1)) monday in august
(third + 1) monday in august
fourth monday in august
And for any other year =>
(third + (year == 2011)) monday in august
(third + (0)) monday in august
(third + 0) monday in august
third monday in august
Is there another way to express this condition?
Should I comment the logic used in the holidays file?
Thanks again
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Kdepim-bugs
mailing list