Sha256: 4ff27aee7fb517fa3669807c7f0c4dc14df37457f7bfbc637be85b4c9e002a9a
Contents?: true
Size: 371 Bytes
Versions: 14
Compression:
Stored size: 371 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true require 'mail/parsers/date_time_parser' module Mail class DateTimeElement #:nodoc: attr_reader :date_string, :time_string def initialize(string) date_time = Mail::Parsers::DateTimeParser.parse(string) @date_string = date_time.date_string @time_string = date_time.time_string end end end
Version data entries
14 entries across 14 versions & 5 rubygems