You noted the rails question, here's how you can do it 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 a Time object, just add 168.hours :
new_time = old_time + 168.hours
Or you can simply add 1.week :
new_time = old_time + 1.week
source share