Method: Lazier::DateTime#padded_month
- Defined in:
- lib/lazier/datetime.rb
#padded_month ⇒ String
Returns the current month number with a leading zero if needed.
160 161 162 |
# File 'lib/lazier/datetime.rb', line 160 def padded_month month.indexize end |