Class: Time

Inherits:
Object show all
Defined in:
lib/rcal/util/to_ical.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_ical

Returns strftime('%Y%m%dT%H%M%S'), with 'Z' appended if utc? returns true.



57
58
59
60
61
# File 'lib/rcal/util/to_ical.rb', line 57

def to_ical
  result = strftime('%Y%m%dT%H%M%S')
  result << 'Z' if utc?
  result
end