spec/spec_helper.rb
# Returns a ::Time instance in the given time zone
#
Returns a ::Time instance in the given time zone
Returns a :: Time instance in the given time zone
def time_in_zone(zone_name, t=nil, &block)
    determine_t = lambda {
      case
      when block then block.call
      when t.is_a?(String) then Time.parse(t)
      when t then t
      else Time.now
      end }
    in_zone(zone_name, determine_t.call) { determine_t.call }
  end
def time_in_zone ( zone_name , t = nil , & block ) determine_t = lambda { case when block then block . call when t . is_a? ( String ) then Time . parse ( t ) when t then t else Time . now end } in_zone ( zone_name , determine_t . call ) { determine_t . call } end
Returns a ::Time instance in the given time zone
Returns a :: Time instance in the given time zone
zone_name
<not_specific>
t
<not_specific>
block
<not_specific>