Move DateTime
require 'date' puts y2k_dt = DateTime.new(2000, 1, 1) puts (y2k_dt >> 1).to_s # => "2000-02-01T00:00:00Z" puts (y2k_dt << 1).to_s # => "1999-12-01T00:00:00Z"