RosettaCodeData/Task/Date-manipulation/Ruby/date-manipulation-2.rb
2023-07-01 13:44:08 -04:00

3 lines
70 B
Ruby

new = t + 12.hours
new = t.in(12.hours)
new = t.advance(:hours => 12)