method

year_name

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: ActionView::Helpers::DateTimeSelector
year_name(number) private

Looks up year names by number.

year_name(1998) # => 1998

If the :year_format option is passed:

year_name(1998) # => "Heisei 10"
Show source
Register or log in to add new notes.