def check_timestamp_by_rule(rulearray, tstamp):
    """ check if given time-stamp is comply to the given rule array

	Parameter:
		rulearray - rule array generated by parse_cronstring
		tstamp - time-stamp to be check
	Return:
		True if given time-stamp complied, False otherwise
	"""
    complied = 0
    for rset in rulearray:
        is_complied = False
        if rset is None:
            is_complied = True
        else:
            for robj in rset:
                if robj.is_accept(tstamp):
                    is_complied = True
                    break
        if is_complied:
            complied = complied + 1
    if 5 == complied:
        return True
    return False
