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

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/mail-2.8.1/lib/mail/elements/date_time_element.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/mail-2.8.1/lib/mail/elements/date_time_element.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/date_time_element.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/date_time_element.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/date_time_element.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/date_time_element.rb
mail-2.8.1 lib/mail/elements/date_time_element.rb
mail-2.8.1.rc2 lib/mail/elements/date_time_element.rb
mail-2.8.0.1 lib/mail/elements/date_time_element.rb
mail-2.8.0.1.rc1 lib/mail/elements/date_time_element.rb
mail-2.8.0 lib/mail/elements/date_time_element.rb
mail-2.8.0.rc3 lib/mail/elements/date_time_element.rb
mail-2.8.0.rc2 lib/mail/elements/date_time_element.rb
mail-2.8.0.rc1 lib/mail/elements/date_time_element.rb