Class: DateTime

Inherits:
Date show all
Includes:
Icalendar::TzidSupport
Defined in:
lib/icalendar/conversions.rb

Instance Attribute Summary collapse

Attributes included from Icalendar::TzidSupport

#icalendar_tzid

Instance Method Summary collapse

Instance Attribute Details

#ical_paramsObject

Returns the value of attribute ical_params.



73
74
75
# File 'lib/icalendar/conversions.rb', line 73

def ical_params
  @ical_params
end

Instance Method Details

#to_icalObject



76
77
78
79
80
81
82
83
84
85
# File 'lib/icalendar/conversions.rb', line 76

def to_ical
  s = strftime '%Y%m%dT%H%M%S'

  # UTC time gets a Z suffix
  if icalendar_tzid == "UTC"
    s << "Z"
  end

  s
end