code: public boolean IsInside( String pDate )
  	{
  		if( periods == null )
  		{
  			if( days == null ) // security added to avoid null exception
  				return false;
  
  			if( days.getDay( CalendarFunctions.date_get_day( pDate ) ).get() > 0 )
  				return true;
  
  			return false;
  		}
  
  		for( int i = 0; i < periods.size(); i++ )
  		{
  			Period period = periods.get( i );
  			if( period.getFrom().compareTo( pDate ) > 0 )
  				return false;
  			if( (period.getFrom().compareTo( pDate ) <= 0) && (period.getTo().compareTo( pDate ) >= 0) )
  				return true;
  		}
  
  		return false;
  	}
docs: false if not