Prekin
What is Prekin?
Naming
Prekin
meansPREMIUM FRIDAY
kin
means FRIDAY (kin-yo-bi
) in Japanese- So
PRE
miumKIN
-yo-bi isPrekin
Webpage
- A webpage by Ministry of Economy, Trade and Industry in Japan
- A webpage by Premium Friday Committee
Installation
Add this line to your application's Gemfile:
gem 'prekin'
And then execute:
$ bundle
Or install it yourself as:
$ gem install prekin
Usage
1. require
require 'prekin'
2. call
2-1. Time class
Time.local(2020, 10, 30, 0, 0, 0).prekin? #=> true
2-2. Date class
Date.new(2020, 10, 30).prekin? #=> true
2-3. DateTime class
DateTime.new(2020, 10, 30, 0, 0, 0, '+09:00').prekin? #=> true
2-4. String class
'2020/10/30 00:00:00 +09:00'.prekin? #=> true
Note
- This gem overwrites
Time
,Date
,DateTime
andString
class.- So if you use
Time
,Date
,DateTime
andString
class in your code, you should be careful.
- So if you use
License
The gem is available as open source under the terms of the MIT License.