def valid_time(time)
			# Custom date range
			if time.is_a?(Hash)
				raise Exception.new("Invalid time: missing :custom_date_range_start key") if !time.key?(:custom_date_range_start)
				raise Exception.new("Invalid time: missing :custom_date_range_end key")  if !time.key?(:custom_date_range_end)
			# Time periods
			else
				return TIME_PERIODS.key?(time.to_s)
			end
			return true
		end
def valid_time(time)
			# Custom date range
			if time.is_a?(Hash)
				raise Exception.new("Invalid time: missing :custom_date_range_start key") if !time.key?(:custom_date_range_start)
				raise Exception.new("Invalid time: missing :custom_date_range_end key")  if !time.key?(:custom_date_range_end)
			# Time periods
			else
				return TIME_PERIODS.key?(time.to_s)
			end
			return true
		end
Public : Validates the time attribute present in some report request

 Author:: jlopezn@neonline.cl

 time - Hash with the time attribute for the report request

 Returns:: true if validation is ok, raises Exception otherwise
 Raises:: Exception if custom date range is bad informed, or if time periods specified is unknown