Method: TZInfo::TimeOrDateTime#mday
- Defined in:
- lib/tzinfo/time_or_datetime.rb
#mday ⇒ Object Also known as: day
Returns the day of the month (1..n).
146 147 148 149 150 151 152 153 154 |
# File 'lib/tzinfo/time_or_datetime.rb', line 146 def mday if @time @time.mday elsif @datetime @datetime.mday else to_time.mday end end |