Date Ruby

require 'date'
local = DateTime.now
local.to_s                   # => "2006-03-18T20:15:58-0500"
utc = local.new_offset(0)
utc.to_s                     # => "2006-03-19T01:15:58Z"