class JPDate
日本の祝日と年号を出力するDateクラス(Dateを継承)
Example:¶ ↑
date = JPDate.parse('2014-9-23') date.holiday # => "秋分の日" date.era # => ["平成26年"] date.short_era # => ["H26"]
Constants
- VERSION
Public Instance Methods
era()
click to toggle source
# File lib/jpdate.rb, line 18 def era Era.name_year(year, month, day) end
holiday()
click to toggle source
# File lib/jpdate.rb, line 14 def holiday Holiday.name(self) end
short_era()
click to toggle source
# File lib/jpdate.rb, line 22 def short_era Era.short_name_year(year, month, day) end