rwec.co.uk

Rowan's World, Et Cetera

iCalendar for English Bank Holidays

by Rowan - August 10th, 2009.
Tags: , , , , .

I’ve been making increasing use of Lightning (backed onto Google Calendar) recently, for both work and personal use, and being able to see bank holidays in my calendar would be very handy. But for some reason, all I can ever find is calendars for “UK Holidays”, which are pretty useless – for one thing, not all parts of the UK have the same bank holidays, and for another, they tend to include random events like Saints’ Days which aren’t “holidays” in the sense of a day off work!

So I decided to make my own calendar, showing bank holidays, in England, and nothing else. And, just for the sake of it (and because there was a very nice-looking library available), I wrote my first ever Ruby script to generate the iCal file for it! A seasoned Ruby coder will probably look at it and laugh, but hey, it works!

The dates are based on this government website, which currently has data up to 2011. The resulting files should work fine in Lightning, and as imports to Google Calendar, so feel free to “subscribe”.

10 Responses to iCalendar for English Bank Holidays

  1. “…for both home and personal use…” Married to your work are we?

  2. Ooh, erm, *ahem*… You must have imagined it! ;)

  3. Great – been looking for a bank holiday only calendar. Is this likely to go offline in the future?

    Cheers

  4. Well, I obviously can’t guarantee it 100%, but I certainly intend to keep URLs on this domain permanent, so these should remain available (and updated as necessary) “for the foreseeable future”.

    Glad to be of service! :)

  5. Ta! (And what a shame that the Government Web site isn’t clued up enough to do this.)

  6. Thank you! :-)

  7. Excellent. Thanks. Was thrown a few times when I told people we could not hold a meeting because of the Bank Holiday (in Scotland) and I live in England. Doh!

  8. So New Year’s Day 2011 is on the 3rd January. I think it would be better if you changed these ‘substitute days’ to be called ‘Bank Holiday’. I’m such a halfwit I’ll probably arrange my christmas dinner for the wrong day otherwise.

  9. @Neal: Yeah, arranging meetings is hard enough without misleading calendars! Glad to be of service. :)

    @steve: Haha! I hadn’t thought of that, I just copied them straight from the government lists. This would have been particularly confusing for the Scottish calendar, on which the 4th January was labelled “2nd January”!

    I’ve gone through and added the word “Holiday” at the end of all the affected dates. (If anyone can think of a better label for the second Scottish New Year’s holiday than “2nd January Bank Holiday”, let me know…)

  10. Thanks! Very handy. I keep on having my hopes raised by impending bank holidays on my calendar, only to find out they’re Scottish-only!

Leave a Reply