Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/gcal4ruby/recurrence.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#complete ⇒ Object
Returns a ISO 8601 complete formatted string of the time.
Class Method Details
.parse_complete(value) ⇒ Object
7 8 9 10 |
# File 'lib/gcal4ruby/recurrence.rb', line 7 def self.parse_complete(value) d, h = value.split("T") return Time.parse(d+" "+h.gsub("Z", "")) end |
Instance Method Details
#complete ⇒ Object
Returns a ISO 8601 complete formatted string of the time
3 4 5 |
# File 'lib/gcal4ruby/recurrence.rb', line 3 def complete self.utc.strftime("%Y%m%dT%H%M%S") end |