Need some source code or an idea please.
Discussion
There's no "working out". The days are decided upon. Easter moves around quite a bit and is decided internationally - then the public holidays are declared and you can find them on a government web-site. The May bank holidays are also decided upon - but nationally - as is August's. Christmas Day and Boxing Day may be fixed - but which days are "bank holidays" get declared.
In our app we have a database table filled with the days. I populate the table from the government data for a few years in advance as soon as its available.
In our app we have a database table filled with the days. I populate the table from the government data for a few years in advance as soon as its available.
Don said:
There's no "working out". The days are decided upon. Easter moves around quite a bit and is decided internationally - then the public holidays are declared and you can find them on a government web-site. The May bank holidays are also decided upon - but nationally - as is August's. Christmas Day and Boxing Day may be fixed - but which days are "bank holidays" get declared.
In our app we have a database table filled with the days. I populate the table from the government data for a few years in advance as soon as its available.
Do you have a link to the website in question??
...and if they're always on that page, it's not rocket science to parse the page from your code. That way you won't be caught out by 'specials' for somebody famous dying, or England winning the World Cup, or whatever.
ed. for spelling
>> Edited by jamieboy on Thursday 16th February 12:24
ed. for spelling
>> Edited by jamieboy on Thursday 16th February 12:24
Don said:
There's no "working out". The days are decided upon. Easter moves around quite a bit and is decided internationally
Don,
I think there are rules for deciding when Easter is... see here
BBC said:
The general rule is that Easter Sunday is the first Sunday after the first Full Moon on or after the Spring Equinox.
Neil.
Ps. Aren't all the Bank Holiday Monday's generally agreed to be the first and last Monday's of May and the last Monday of August?
Neilus said:
Don said:
There's no "working out". The days are decided upon. Easter moves around quite a bit and is decided internationally
Don,
I think there are rules for deciding when Easter is... see here
BBC said:
The general rule is that Easter Sunday is the first Sunday after the first Full Moon on or after the Spring Equinox.
Neil.
Ps. Aren't all the Bank Holiday Monday's generally agreed to be the first and last Monday's of May and the last Monday of August?
Good info. I did think that, despite the algorithms, when public holidays are is subject to Goverment discretion? So this may, indeed, be how its worked out - but they can add days (like the Queen's jubilee a few years back) and move them if necessary?
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


