Sha256: 57293adabadc714296abea36c71719a99e885354077dffa77647ad307008463f

Contents?: true

Size: 560 Bytes

Versions: 4

Compression:

Stored size: 560 Bytes

Contents

#- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib ri_cal]))
require 'cgi'

module Kernel
  def rputs(*args)
    puts *["<pre>", args.collect {|a| CGI.escapeHTML(a.to_s)}, "</pre>"] #if RiCal.debug
    # puts *args
  end
end

def date_time_with_zone(date_time, tzid = "US/Eastern")
  date_time.dup.set_tzid(tzid)
end

def dt_prop(date_time, tzid = "US/Eastern")
  RiCal::PropertyValue::DateTime.convert(nil, date_time_with_zone(date_time, tzid))
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyredrick-ri_cal-0.0.3 spec/spec_helper.rb
rubyredrick-ri_cal-0.0.4 spec/spec_helper.rb
rubyredrick-ri_cal-0.0.5 spec/spec_helper.rb
rubyredrick-ri_cal-0.0.6 spec/spec_helper.rb