Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/gcal4ruby/recurrence.rb
Overview
- Author
-
Mike Reich ([email protected])
- Copyright
-
Copyright © 2010 Mike Reich
- License
-
GPL v2
– Licensed under the General Public License (GPL), Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Feel free to use and update, but be sure to contribute your code back to the project and attribute as required by the license. ++
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
25 26 27 28 |
# File 'lib/gcal4ruby/recurrence.rb', line 25 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
21 22 23 |
# File 'lib/gcal4ruby/recurrence.rb', line 21 def complete self.utc.strftime("%Y%m%dT%H%M%S") end |