Created attachment 63854 [details] Proposed libkholidays plan2 file for Singapore Version: 4.7 (using KDE 4.7.1) OS: Linux All national holidays (holidays for everyone) in Singapore are considered "Public Holidays", including religious ones. Students of Primary and Secondary levels enjoy "School Holidays" that include term/semester breaks. These holidays are not for the working public, or students of tertiary level and beyond (who do have term/semester breaks). Cultural observences are not holidays, but are marked on the calender. A few (usually just one to two but may be more in some years) of the public holidays do not have a fixed recurring date and depend on external factors. The government marks unconfirmed dates officially (that are printed as such) and issues updates or confirmation through the media at a later time. This may apply to non-holiday observences as well. Holidays that fall on a Sunday will roll over to a holiday on the next Monday. Both the days are marked on the calender, so I am unsure if this translates perfectly to "shift to monday if sunday". I have attached a plan(2) file but it should not be committed verbatim. The syntax is not well-documented and there are different styles among the distributed files, for eg. "minus 2" vs. "minus 2 days", "shift to monday if sunday" vs. "$someconditional". I am also unsure what "weekend on $someday" means over simply "$someday". I wanted to add in the term/semester breaks for schools, but was not confident that the "plus $days" syntax would be correct. The primary sources for the year of 2011: http://www.mom.gov.sg/employment-practices/employment-rights-conditions/leave-and-holiday/Pages/PublicHolidays2011.aspx http://www.moe.gov.sg/schools/terms-and-holidays/ There are iCalender, XML and HTML files offered, so it would be good if in the future libkholidays could parse one or more of such formats. Reproducible: Didn't try Steps to Reproduce: N.A Actual Results: N.A Expected Results: N.A N.A
Created attachment 68220 [details] Singapore public holidays for 2012 and 2013
I installed KDE 4.8 and found that it does not come with the public holidays for Singapore. I created a file (see #Comment 1) for 2012 and 2013 which could be merged with that of the first post. Sources are: http://www.mom.gov.sg/employment-practices/employment-rights-conditions/leave-and-holiday/Pages/PublicHolidays2012.aspx http://www.officeholidays.com/countries/singapore/2013.asp
Comment on attachment 68220 [details] Singapore public holidays for 2012 and 2013 I installed KDE 4.8 and found that it does not come with the public holidays for Singapore. I created a file for 2012 and 2013 which could be merged with that of the first post. Sources are: http://www.mom.gov.sg/employment-practices/employment-rights-conditions/leave-and-holiday/Pages/PublicHolidays2012.aspx http://www.officeholidays.com/countries/singapore/2013.asp
(In reply to comment #3) > (From update of attachment 68220 [details]) > I installed KDE 4.8 and found that it does not come with the public holidays > for Singapore. I created a file for 2012 and 2013 which could be merged with > that of the first post. Looks good but your file doesn't include the cultural and school days that were in Ray's file. Is that on purpose ?
I think the cultural days are a bit subjective. I'm not sure if anybody observes "April Fool's Day" for example. I left out the school holidays, because different school types have different holidays (see link provided by Ray) and I think that gets a bit confusing and overloads the calendar. Maybe a second file with school holidays would be nice. This way they are optional and it is up to the user to enable or disable them. But I think no other country calendar has that. To answer your question; my personal opinion is that it is better to show only the official public holidays.
Git commit 6e007fe3218a206e6bf59ff5473cd96648fbacc4 by Christophe Giboudeaux. Committed on 29/01/2012 at 13:59. Pushed by cgiboudeaux into branch 'master'. Add public holiday for Singapore. FIXED-IN: 4.8.1 A +49 -0 kholidays/holidays/plan2/holiday_sg_en-gb http://commits.kde.org/kdepimlibs/6e007fe3218a206e6bf59ff5473cd96648fbacc4
Git commit 3ffe6123e56843113b66506ce5b1cf677fa44323 by Christophe Giboudeaux. Committed on 29/01/2012 at 13:59. Pushed by cgiboudeaux into branch 'KDE/4.8'. Add public holiday for Singapore. FIXED-IN: 4.8.1 (cherry picked from commit c4b2c8558ab778bc0f681388e59fb168b7d39cc3) A +49 -0 kholidays/holidays/plan2/holiday_sg_en-gb http://commits.kde.org/kdepimlibs/3ffe6123e56843113b66506ce5b1cf677fa44323
Thank you!
*** Bug 251318 has been marked as a duplicate of this bug. ***