PrekinmeansPREMIUM FRIDAYkinmeans FRIDAY (kin-yo-bi) in Japanese- So
PREmiumKIN-yo-bi isPrekin
- A webpage by Ministry of Economy, Trade and Industry in Japan
- A webpage by Premium Friday Committee
Add this line to your application's Gemfile:
gem 'prekin'And then execute:
$ bundleOr install it yourself as:
$ gem install prekinrequire 'prekin'
Time.local(2020, 10, 30, 0, 0, 0).prekin? #=> true
Date.new(2020, 10, 30).prekin? #=> true
DateTime.new(2020, 10, 30, 0, 0, 0, '+09:00').prekin? #=> true
'2020/10/30 00:00:00 +09:00'.prekin? #=> true
Prekin.next #=> "2020-10-30"Prekin.next('2023-12-28') #=> "2023-12-29"Prekin.next('2023-12-29') #=> "2023-12-29"Prekin.next('2023-12-30') #=> "2024-01-26"
- This gem overwrites
Time,Date,DateTimeandStringclass.- So if you use
Time,Date,DateTimeandStringclass in your code, you should be careful.
- So if you use
The gem is available as open source under the terms of the MIT License.