Method: TZInfo::TimeOrDateTime#mon
- Defined in:
- lib/tzinfo/time_or_datetime.rb
#mon ⇒ Object Also known as: month
Returns the month of the year (1..12).
141 142 143 144 145 146 147 148 149 |
# File 'lib/tzinfo/time_or_datetime.rb', line 141 def mon if @time @time.mon elsif @datetime @datetime.mon else to_time.mon end end |