Qreki
This is the gem which calculates the old calendar "qreki".
Installation
Add this line to your application's Gemfile:
gem 'qreki'
And then execute:
$ bundle
Or install it yourself as:
$ gem install qreki
Usage
>> require 'qreki'
Calc qreki "旧暦" as:
>> qreki = Qreki.calc(2013,11,7)
>> qreki.year # 2013
>> qreki.uruu # false
>> qreki.month # 10
>> qreki.day # 5
>> qreki.rokuyou # "友引"
>> qreki.sekki # "立冬"
Calc shunbun "春分の日" as:
>> sreki = Qreki.shunbun(2014)
>> sreki.year # 2014
>> sreki.month # 3
>> sreki.day # 21
Calc shuubun "秋分の日" as:
>> sreki = Qreki.shuubun(2014)
>> sreki.year # 2014
>> sreki.month # 9
>> sreki.day # 23
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request