static boolean isChristmasTime(Calendar cal){
  int month=cal.get(Calendar.MONTH);
  int day=cal.get(Calendar.DAY_OF_MONTH);
  if (month >= 1 && month < 10) {
    return false;
  }
  if (month == 0) {
    return day <= 6;
  }
  if (month == 10) {
    return day >= 23;
  }
  return false;
}

static boolean isChristmasTime ( Calendar cal ) { int month = cal . get ( Calendar . MONTH ) ; int day = cal . get ( Calendar . DAY_OF_MONTH ) ; if ( month >= 1 && month < 10 ) { return false ; } if ( month == 0 ) { return day <= 6 ; } if ( month == 10 ) { return day >= 23 ; } return false ; }
checks whether now is christmas time
