Sha256: 66e62e347f3a7faf9830c6f9e41bc5ed3a2cf676d109db78b94e9010161a5e81

Contents?: true

Size: 200 Bytes

Versions: 9

Compression:

Stored size: 200 Bytes

Contents

require 'timeliness'

module Natour
  module DateUtils
    module_function

    def parse(*args)
      args.map { |arg| Timeliness.parse(arg.to_s[/^(\d{4}-\d{2}-\d{2})/])&.to_date }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
natour-0.12.0 lib/natour/utils/date_utils.rb
natour-0.11.0 lib/natour/utils/date_utils.rb
natour-0.10.0 lib/natour/utils/date_utils.rb
natour-0.9.0 lib/natour/utils/date_utils.rb
natour-0.8.0 lib/natour/utils/date_utils.rb
natour-0.7.0 lib/natour/utils/date_utils.rb
natour-0.6.0 lib/natour/utils/date_utils.rb
natour-0.5.0 lib/natour/utils/date_utils.rb
natour-0.4.0 lib/natour/utils/date_utils.rb