Sha256: 4f837e00c834e9e43dad28bbc05cb54e9141fa3d71d15d021d563c8cfd1edd9f
Contents?: true
Size: 334 Bytes
Versions: 3
Compression:
Stored size: 334 Bytes
Contents
require 'date' module Mida module DataType # ISO 8601 Date data type module ISO8601Date # Returns the +value+ as a +DateTime+ instance # Relies on <tt>DateTime#iso8601</tt> to raise # +ArgumentError+ if not valid def self.extract(value) DateTime.iso8601(value) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mida-0.3.2 | lib/mida/datatype/iso8601date.rb |
mida-0.3.1 | lib/mida/datatype/iso8601date.rb |
mida-0.3.0 | lib/mida/datatype/iso8601date.rb |