# File lib/dbi/sql.rb, line 49 def as_time(str) return nil if str.nil? or str.empty? t = ParseDate.parsedate(str) DBI::Time.new(*t[3,3]) end