Skip to content

akm/warekky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

warekky

warekkyは和暦サポートのためのライブラリです。和暦の日付と西暦の日付を相互に変換できます。

Install

$ [sudo] gem install warekky

Simple Usage

$ irb
require 'rubygems'; require 'warekky'
#=> true

Date.new(2010, 6, 10).strftime("%g%N/%m/%d")
#=> "H22/06/10"

Time.parse("H22/06/10 19:07:20")
#=> Thu Jun 10 19:07:20 0900 2010

Time.now.era.name
#=> "heisei"

Copyright © 2010 Takeshi AKIMA. See LICENSE for details.

About

Japanese era convertor library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages