Skip to content

Commit e39e059

Browse files
authored
Merge pull request #22 from gocardless/becs
Add public holidays for BECS.
2 parents 536df9c + 8977e51 commit e39e059

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ You can then load the calendar as normal.
6363
### Business day arithmetic
6464

6565
The `add_business_days` and `subtract_business_days` are used to perform
66-
business day arithemtic on dates.
66+
business day arithmetic on dates.
6767

6868
```ruby
6969
date = Date.parse("Thursday, 12 June 2014")
@@ -97,6 +97,18 @@ calendar.business_days_between(date, date + 7)
9797
# => 5
9898
```
9999

100+
### Included Calendars
101+
102+
We include some calendar data with this Gem but give no guarantees of its
103+
accuracy.
104+
The calendars that we include are:
105+
106+
* Bacs
107+
* Bankgirot
108+
* BECS
109+
* Betalingsservice
110+
* Target (SEPA)
111+
100112
## But other libraries already do this
101113

102114
Another gem, [business_time](https://github.com/bokmann/business_time), also

lib/business/data/becs.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
working_days:
2+
- monday
3+
- tuesday
4+
- wednesday
5+
- thursday
6+
- friday
7+
8+
holidays:
9+
- January 1st, 2017
10+
- January 26th, 2017
11+
- April 14th, 2017
12+
- April 17th, 2017
13+
- April 25th, 2017
14+
- December 25th, 2017
15+
- December 26th, 2017
16+
- January 1st, 2018
17+
- January 26th, 2018
18+
- March 30th, 2018
19+
- April 2nd, 2018
20+
- April 25th, 2018
21+
- December 25th, 2018
22+
- December 26th, 2018

0 commit comments

Comments
 (0)