Method: NSDate#start_of_month
- Defined in:
- lib/sugarcube-nsdate/nsdate.rb
#start_of_month ⇒ Object
(main)> t = Time.new => 2012-09-27 11:29:12 +0900 (main)> t.start_of_month => 2012-09-01 00:00:00 +0900
214 215 216 |
# File 'lib/sugarcube-nsdate/nsdate.rb', line 214 def start_of_month return self.start_of_day.delta(days:1 - day) end |