Tue, 16 Feb 2010 03:12:02 UTC +00:00
, for example.You tagged the question rails
so here is how you can do this in Rails, using some of the helpers:
time_string = 'Tue, 16 Feb 2010 03:12:02 UTC +00:00'
new_time = Time.parse( time_string ) + 168.hours
If you already have it as a Time object, just add the 168.hours
:
new_time = old_time + 168.hours
Or you can just add 1.week
:
new_time = old_time + 1.week
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With