This is the shortest way I've ever seen to solve this problem. Well done, sir.

~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/



On Fri, Jul 22, 2011 at 22:26, 7stud -- <bbxx789_05ss / yahoo.com> wrote:
> t = Time.now
> puts t
> puts Time.utc(*t.to_a)
>
> --output:--
> 2011-07-22 19:25:26 -0700
> 2011-07-22 19:25:26 UTC
>
> --
> Posted via http://www.ruby-forum.com/.
>
>