TimerService work days functionality

The TimerService caters for week days but not for work days. People that want to run jobs on work days usually work around this by querying a database and then deciding whether to go ahead or not. Here are some ideas on how to implement work days.

  • An IgnoreDays property that takes a list of dates.
  • A WorkDays section that exposes a Holidays property that takes a list of dates.

Any other ideas, comments?

The IgnoreDays option seems more generic. Perhaps users can upload a iCal file?

The iCal upload can work if we assume that each date marked in the iCal indicates a date to ignore.

I think that should be OK, since there are iCal files containing only holidays. However, perhaps we could provide the dates in a selection list after upload where users can tick dates from the iCal file they want to ignore?

Found this webservice that returns all public holidays:
http://www.kayaposoft.com/enrico/

They do cater for a lot of countries, although it probably won’t be sufficient to cater for all scenarios.

Here is a list of similar services. These all allow for iCal file downloads.
http://www.calendarlabs.com/ical-calendar-holidays.php
http://www.officeholidays.com/ics/
http://www.apple.com/downloads/macosx/calendars/
http://icalshare.com/categories/18
http://icalshare.com/
http://www.worldnationalholidays.com/
http://basics4mac.com/article.php/holidays_cal
… etc.
Franz