Sha256: dcf38e595f2656a49585355d60f1ee414ed89aeda30af9bcfdf17d4c3a23d6f2

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

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

module GlooLang
  module Convert
    class StringToTime

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

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gloo-lang-1.4.3 lib/gloo_lang/convert/string_to_time.rb
gloo-lang-1.4.2 lib/gloo_lang/convert/string_to_time.rb
gloo-lang-1.4.1 lib/gloo_lang/convert/string_to_time.rb
gloo-lang-1.4.0 lib/gloo_lang/convert/string_to_time.rb