Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { public static boolean IsItTheWeekend() { Calendar calendarToday = Calendar.getInstance(); if (calendarToday.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY || calendarToday.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) { //TODO: //Change back to true, set to false to test information on the weekend return true; } else { return false; } } }