class Time

Attributes

ical_params[RW]

Public Instance Methods

to_ical(utc = false) click to toggle source
# File lib/icalendar/conversions.rb, line 92
def to_ical(utc = false)
  s = strftime '%H%M%S'

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

  s
end