Here you can find the source of getToday()
public static Date getToday()
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { /**/*from w w w . j a v a 2 s. c om*/ * Used for testing-purposes of the scheduling algorithm, where it is sometimes necessary to hack the value of * 'today'. */ public static Date testToday; public static Date getToday() { if (testToday != null) return testToday; return new Date(System.currentTimeMillis()); } }