lib/edtf/compatibility.rb in edtf-0.0.4 vs lib/edtf/compatibility.rb in edtf-0.0.5

- old
+ new

@@ -5,6 +5,15 @@ # class DateTime # def to_time # Time.parse(to_s) # end # end -# end \ No newline at end of file +# end + + +class DateTime + + def iso8601 + to_time.iso8601 + end unless method_defined?(:iso8601) + +end