Skip to content

twbcs/roc_date_convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RocDateConvert

僅對Rails [Date, Time]擴展顯示功能

Installation

Add this line to your application's Gemfile:

gem 'roc_date_convert', :git => 'https://github.com/twbcs/roc_date_convert.git', :branch => 'master'

And then execute:

$ bundle

Usage

instance method

Date roc_date "105年12月8日"

Time roc_date "105年12月8日"

   roc_time "105年12月8日 11:55"

ex:

a = Time.new

a.roc_date => "105年12月8日"

a.roc_date("民國") => "民國105年12月8日"

Development

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/twbcs/roc_date_convert.

License

The gem is available as open source under the terms of the MIT License.

About

轉換西元年顯示民國年

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published