Skip to content

Commit

Permalink
Merge pull request #22 from gocardless/becs
Browse files Browse the repository at this point in the history
Add public holidays for BECS.
  • Loading branch information
danwakefield authored Dec 20, 2017
2 parents 536df9c + 8977e51 commit e39e059
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ You can then load the calendar as normal.
### Business day arithmetic

The `add_business_days` and `subtract_business_days` are used to perform
business day arithemtic on dates.
business day arithmetic on dates.

```ruby
date = Date.parse("Thursday, 12 June 2014")
Expand Down Expand Up @@ -97,6 +97,18 @@ calendar.business_days_between(date, date + 7)
# => 5
```

### Included Calendars

We include some calendar data with this Gem but give no guarantees of its
accuracy.
The calendars that we include are:

* Bacs
* Bankgirot
* BECS
* Betalingsservice
* Target (SEPA)

## But other libraries already do this

Another gem, [business_time](https://github.com/bokmann/business_time), also
Expand Down
22 changes: 22 additions & 0 deletions lib/business/data/becs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
working_days:
- monday
- tuesday
- wednesday
- thursday
- friday

holidays:
- January 1st, 2017
- January 26th, 2017
- April 14th, 2017
- April 17th, 2017
- April 25th, 2017
- December 25th, 2017
- December 26th, 2017
- January 1st, 2018
- January 26th, 2018
- March 30th, 2018
- April 2nd, 2018
- April 25th, 2018
- December 25th, 2018
- December 26th, 2018

0 comments on commit e39e059

Please sign in to comment.