module FFaker::Time
def convert_to_time(value)
def convert_to_time(value) case value.class.name when 'String' DateTime.parse(value).to_time when 'Date', 'DateTime', 'ActiveSupport::TimeWithZone' value.to_time when 'Time' value else raise "FFaker cannot convert #{value.class} '#{value}' to Time" end end