class DateTime

Attributes

ical_params[RW]

Public Instance Methods

to_ical() click to toggle source
# File lib/icalendar/conversions.rb, line 71
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