On Jan 8, 2009, at 11:54 AM, Jarmo Pertman wrote:

> Or even better way using ActiveSupport:
>
> irb(main):001:0> require 'active_support'
> => true
> irb(main):002:0> t = Time.parse('Wed Dec 09 16:05:00 -0600 2009')
> => Thu Dec 10 00:05:00 +0200 2009
> irb(main):003:0> t + 10.minutes
> => Thu Dec 10 00:15:00 +0200 2009
> irb(main):004:0>

Since the OP thoughtfully asks this question in the Ruby list and not  
the Rails list, s/he may not have/want ActiveSupport.  If this is the  
only thing, pulling ActiveSupport in is certainly overkill.

Also, note that Time.parse isn't available unless you require  
'time' (which ActiveSupport might do itself).

-Rob

Rob Biedenharn		http://agileconsultingllc.com
Rob / AgileConsultingLLC.com