def activities_from_to(query,default_from,default_to)
			defaults = {"range" => {"from" => default_from, "to" => default_to}}
			query = defaults.deep_merge(query)
			##default from and to assigned here.
			from = query["range"]["from"].to_i
			to = query["range"]["to"].to_i
			if from >= to
				query["range"]["from"] = default_from
				query["range"]["to"] = default_to
			end
			return query
		end
def activities_from_to(query,default_from,default_to)
			defaults = {"range" => {"from" => default_from, "to" => default_to}}
			query = defaults.deep_merge(query)
			##default from and to assigned here.
			from = query["range"]["from"].to_i
			to = query["range"]["to"].to_i
			if from >= to
				query["range"]["from"] = default_from
				query["range"]["to"] = default_to
			end
			return query
		end
the default "from" is the beginning of the current month, and the default "to" is the current time.
@used_in : last_n_months, get_in_range
@param[Hash]  query: the "from","to" provided in the query if at all, otherwise nil, assumed that query has two keys : "from", "to", under a key called "range"
@param[Integer] default_from : the default_from for the particular function that is firing this query, it is an epoch
@param[Integer] default_to : the default_to for the particular function that is firing this query, it is an epoch
@return[Hash] : default values for "from", "to"