Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuta17/holidays_in_month
return holidays(Saturday, Sunday, Nationalday)
https://github.com/yuta17/holidays_in_month
Last synced: 18 days ago
JSON representation
return holidays(Saturday, Sunday, Nationalday)
- Host: GitHub
- URL: https://github.com/yuta17/holidays_in_month
- Owner: yuta17
- License: mit
- Created: 2016-03-21T06:52:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-01T13:33:33.000Z (over 8 years ago)
- Last Synced: 2024-12-25T18:30:23.266Z (28 days ago)
- Language: Ruby
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Holidays in Month
This gem is return holidays(Saturday, Sunday, National) of month in Japan.
## Usage
```ruby
JP::Holiday.new.in_month(2016, 1)
=> ["2016-1-2", "2016-1-3", "2016-1-9", "2016-1-10", "2016-1-16", "2016-1-17",
"2016-1-23", "2016-1-24", "2016-1-30", "2016-1-31", {"2016-01-01"=>"元日", "2016-01-11"=>"成人の日"}]
```## Installation
Add this line to your application's Gemfile:
```ruby
gem 'holidays_in_month'
```And then execute:
$ bundle install
Or install it yourself as:
$ gem install holidays_in_month
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).