Sha256: 68498dceaab8ba8fdefbbe25b6af0b45919b8f9ffdaa37dfdb1c10019185382f
Contents?: true
Size: 534 Bytes
Versions: 126
Compression:
Stored size: 534 Bytes
Contents
# encoding: utf-8 module Mail class DateTimeElement # :nodoc: include Mail::Utilities def initialize( string ) parser = Mail::DateTimeParser.new if tree = parser.parse(string) @date_string = tree.date.text_value @time_string = tree.time.text_value else raise Mail::Field::ParseError.new(DateTimeElement, string, parser.failure_reason) end end def date_string @date_string end def time_string @time_string end end end
Version data entries
126 entries across 114 versions & 13 rubygems