Java Month of Year isDefaultHolidays(int year, int month, int day)

Here you can find the source of isDefaultHolidays(int year, int month, int day)

Description

is Default Holidays

License

Apache License

Declaration

static public boolean isDefaultHolidays(int year, int month, int day) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

import java.util.GregorianCalendar;

public class Main {
    static public boolean isDefaultHolidays(int year, int month, int day) {
        GregorianCalendar cal = new GregorianCalendar(year, month - 1, day);
        int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
        return dayOfWeek == Calendar.SUNDAY || dayOfWeek == Calendar.SATURDAY;
    }//from ww w  .  j  a  va  2  s  .c o  m
}

Related

  1. getTimeByYMD(int year, int month, int day)
  2. getTimestamp(int year, int month, int day, int hour, int minute, int second, int millisecond)
  3. getTodayAdd(int year, int month, int day)
  4. getWeek(int year, int month, int day)
  5. getWorkDayNum(int year, int month, int start, int end)
  6. isWeekEnd(int year, int month, int day)
  7. Month_Of_Year(String Date, int MonthCase)
  8. monthLength(int month, int year)
  9. newInstance(int year, int month, int day)