Project

warekky

0.0
No commit activity in last 3 years
No release in over 3 years
Japanese Era(年号) library and Time, Date, DateTime extensions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.9
 Project Readme

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.