Dan Fitzpatrick
1/6/2007 6:53:00 AM
shawn bright wrote:
> lo there all,
>
> i am wrestling with this for a bit now. how do i get a time object for
> two
> weeks ago ?
> if
> t = Time.now, how do i get t - 2 weeks ?
>
> thanks
>
If you use rails or include active support:
require 'rubygems'
require 'active_support'
2.weeks.ago
Dan