Project

qreki

0.01
No commit activity in last 3 years
No release in over 3 years
qreki
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request