var g_filters = {
	has_char:function(url,key){
	  if(!url)	return -1;
	  return url.indexOf(key);		
	},
	beg_time:function(beg_date){
	    var fmt1 = beg_date.substring(0, 19);
        var reg = getRegExp("-", "g");
        var fmt2 = fmt1.replace(reg, '/');
        var t1 = getDate(fmt2);
        var tnow=getDate();
        if(t1<=tnow) return 1;
        return 0;
	},
	end_time:function(end_date){
	        var fmt1 = end_date.substring(0, 19);
            var reg = getRegExp("-", "g");
            var fmt2 = fmt1.replace(reg, '/');
            var t1 = getDate(fmt2);
            var tnow=getDate();
            if(t1>=tnow) return 1;
            return 0;
	}
}
module.exports = {
	has_char: g_filters.has_char,
	beg_time: g_filters.beg_time,
	end_time: g_filters.end_time,
}