RosettaCodeData/Task/Date-manipulation/Ruby/date-manipulation-2.rb

4 lines
70 B
Ruby
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
new = t + 12.hours
new = t.in(12.hours)
new = t.advance(:hours => 12)