Sha256: aae6782e480e7c1cda14ef97a459415b7281b9f5683614828e53d77a9eacb1bd

Contents?: true

Size: 411 Bytes

Versions: 29

Compression:

Stored size: 411 Bytes

Contents

# Author::    Eric Crane  (mailto:eric.crane@mac.com)
# Copyright:: Copyright (c) 2020 Eric Crane.  All rights reserved.
#
# Conversion tool:  String to Date Time.
#
require 'chronic'

module Gloo
  module Convert
    class StringToDateTime

      #
      # Convert the given string value to a date and time.
      #
      def convert( value )
        return Chronic.parse( value )
      end

    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
gloo-3.5.0 lib/gloo/convert/string_to_datetime.rb
gloo-3.4.1 lib/gloo/convert/string_to_datetime.rb
gloo-3.4.0 lib/gloo/convert/string_to_datetime.rb
gloo-3.3.0 lib/gloo/convert/string_to_datetime.rb
gloo-3.2.0 lib/gloo/convert/string_to_datetime.rb
gloo-3.1.1 lib/gloo/convert/string_to_datetime.rb
gloo-3.1.0 lib/gloo/convert/string_to_datetime.rb
gloo-3.0.1 lib/gloo/convert/string_to_datetime.rb
gloo-3.0.0 lib/gloo/convert/string_to_datetime.rb
gloo-2.5.0 lib/gloo/convert/string_to_datetime.rb
gloo-2.4.3 lib/gloo/convert/string_to_datetime.rb
gloo-2.4.2 lib/gloo/convert/string_to_datetime.rb
gloo-2.4.1 lib/gloo/convert/string_to_datetime.rb
gloo-2.4.0 lib/gloo/convert/string_to_datetime.rb
gloo-2.3.1 lib/gloo/convert/string_to_datetime.rb
gloo-2.2.0 lib/gloo/convert/string_to_datetime.rb
gloo-2.1.0 lib/gloo/convert/string_to_datetime.rb
gloo-2.0.2 lib/gloo/convert/string_to_datetime.rb
gloo-2.0.1 lib/gloo/convert/string_to_datetime.rb
gloo-2.0.0 lib/gloo/convert/string_to_datetime.rb