Method: Vcard.decode_date_time_to_datetime
- Defined in:
- lib/vcard.rb
.decode_date_time_to_datetime(v) ⇒ Object
:nodoc:
123 124 125 126 127 |
# File 'lib/vcard.rb', line 123 def self.decode_date_time_to_datetime(v) #:nodoc: year, month, day, hour, min, sec = decode_date_time(v) # TODO - DateTime understands timezones, so we could decode tz and use it. DateTime.civil(year, month, day, hour, min, sec, 0) end |