to_ical (DateTime)

    # File lib/icalendar/conversions.rb, line 65
      def to_ical
        s = ""

        # 4 digit year
        s << self.year.to_s

        # Double digit month
        s << "0" unless self.month > 9
        s << self.month.to_s

        # Double digit day
        s << "0" unless self.day > 9
        s << self.day.to_s

        s << "T"

        # Double digit hour
        s << "0" unless self.hour > 9
        s << self.hour.to_s

        # Double digit minute
        s << "0" unless self.min > 9
        s << self.min.to_s

        # Double digit second
        s << "0" unless self.sec > 9
        s << self.sec.to_s

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

        s
      end