Here you can find the source of isWeekend(Calendar cal)
Parameter | Description |
---|---|
cal | Description of the Parameter |
public static boolean isWeekend(Calendar cal)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { /**//from www . j av a 2s .com * Gets the weekend attribute of the DateUtils class * * @param cal Description of the Parameter * @return The weekend value */ public static boolean isWeekend(Calendar cal) { return (cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY); } }