Sha256: d77426accd5066baeaf8de4cc3802936f22fcfa3a9e5fd020a003330c6a5ddff
Contents?: true
Size: 248 Bytes
Versions: 2
Compression:
Stored size: 248 Bytes
Contents
# unless DateTime.respond_to?(:to_time) # require 'time' # # class DateTime # def to_time # Time.parse(to_s) # end # end # end class DateTime def iso8601 to_time.iso8601 end unless method_defined?(:iso8601) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
edtf-0.0.6 | lib/edtf/compatibility.rb |
edtf-0.0.5 | lib/edtf/compatibility.rb |