Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scotland #31

Closed
brunobord opened this issue Dec 2, 2013 · 7 comments · Fixed by #320
Closed

Scotland #31

brunobord opened this issue Dec 2, 2013 · 7 comments · Fixed by #320
Assignees
Labels
Projects
Milestone

Comments

@brunobord
Copy link
Member

Scotland calendar doesn't look like a piece of cake, they've got extra days for cities (like Glasgow, or Inverness...)

probably won't be able to do it for the advent calendar, but I'll try to integrate it as quickly as I can.

@brunobord brunobord self-assigned this May 16, 2014
@brunobord
Copy link
Member Author

working on it right now. It's going to take time...

@atmclarke
Copy link
Contributor

Hey,
I live in Edinburgh so I can give you information about how holidays work in practice. So in May, everyone has the first Monday in May as a holiday. The schools, council, university, buses (they still run, just on a Saturday timetable instead) and a small number of retailers/shops observe Victoria day, with the rest observing the last Monday. This is generally the pattern across Scotland, that you'll get either the local public holiday or the nearby national holiday, but not both.

I could see it being helpful to construct an Edinburgh calendar for 2014 that would know the 'linked' holiday:

  [... (date(2014, 5, 5), "May Day Public Holiday"), (date(2014, 5, 19), "Victoria Day Public Holiday (or Spring Bank Holiday)", (date(2014, 5, 26), "Spring Bank Holiday (or Victoria Day Public Holiday)")...]

Also, St. Andrews Day isn't in practice a non working day - I don't know of anyone who actually doesn't work on that day. See http://www.scotland.gov.uk/Topics/People/standrewsdaybill/questionsanswers for more details; so I don't think it should be included as a non-working day.

Hope that is helpful,
Martin

@brunobord
Copy link
Member Author

definitely helpful, thanks a million for this information.

@stuaxo
Copy link

stuaxo commented Oct 24, 2014

Hi
Is there any chance this will get merged. - Working on a scottish app at the moment and it would be pretty useful.

Cheers
S

@brunobord
Copy link
Member Author

Hello,

Unfortunately, this branch is still work in progress, because Scotland has a lot of special cases and I couldn't find time yet to work on them.

@stuaxo
Copy link

stuaxo commented Oct 24, 2014

Heh - no probs :)

The architecture makes it easy enough to add specific calendars for organisations.. this is a useful library.

@brunobord brunobord added this to Warming up in Workalendar Jun 15, 2017
@brunobord brunobord moved this from Warming up to Working in Workalendar Aug 30, 2018
@brunobord
Copy link
Member Author

brunobord added a commit that referenced this issue Feb 7, 2019
refs #31

* Scotland base calendars
* Major towns and cities have their own calendars

Four years after the beginning, I'm back.
brunobord added a commit that referenced this issue Feb 7, 2019
brunobord added a commit that referenced this issue Feb 7, 2019
refs #31

* Scotland base calendars
* Major towns and cities have their own calendars

Four years after the beginning, I'm back.
brunobord added a commit that referenced this issue Feb 7, 2019
@brunobord brunobord mentioned this issue Feb 7, 2019
5 tasks
brunobord added a commit that referenced this issue Feb 7, 2019
refs #31

* Scotland base calendars
* Major towns and cities have their own calendars

Four years after the beginning, I'm back.
brunobord added a commit that referenced this issue Feb 7, 2019
@brunobord brunobord moved this from Working to Done in Workalendar Feb 7, 2019
brunobord added a commit that referenced this issue Feb 7, 2019
**New calendars**

*WARNING* Scotland (sub)calendars are highly experimental and because of their very puzzling rules, may be false. Please use them with care.

- Added Scotland calendars, i.e. Scotland, Aberdeen, Angus, Arbroath, Ayr, Carnoustie & Monifieth, Clydebank, Dumfries & Galloway, Dundee, East Dunbartonshire, Edinburgh, Elgin, Falkirk, Fife, Galashiels, Glasgow, Hawick, Inverclyde, Inverness, Kilmarnock, Lochaber, Monifieth, North Lanarkshire, Paisley, Perth, Scottish Borders, South Lanarkshire, Stirling, and West Dunbartonshire (#31).

**Bugfixes**

- Fixed United Kingdom bank holiday for 2002 and 2012, thx @ludsoft (#315).
- Fix a small flake8 issue with wrong indentation (#319).
- Fix Russia "Day of Unity" date, set to November 4th, thx @alexitkes for the bug report (#317).
@brunobord brunobord mentioned this issue Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Workalendar
  
Done/Closed/Published
Development

Successfully merging a pull request may close this issue.

3 participants