Skip to content

Instantly share code, notes, and snippets.

@bpo
Created September 25, 2009 22:45
Show Gist options
  • Save bpo/193900 to your computer and use it in GitHub Desktop.
Save bpo/193900 to your computer and use it in GitHub Desktop.
>> @unit1.updated_at.to_s
=> "2009-09-25T15:44:55-07:00"
>> @unit1.updated_at = 3.days.ago
=> Tue Sep 22 15:45:14 -0700 2009
>> @unit1.updated_at.to_s
=> "2009-09-22T15:45:14-07:00"
>> @unit1.save
=> true
>> @unit1.updated_at.to_s
=> "2009-09-25T15:45:27-07:00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment