Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

ozamasa/qreki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp