Here you can find the source of today()
public static Calendar today()
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { public static Calendar today() { return Calendar.getInstance(); }/* w w w . ja va2s . c o m*/ public static Calendar today(int hour, int minute, int second) { Calendar result = today(); result.set(Calendar.HOUR_OF_DAY, hour); result.set(Calendar.MINUTE, minute); result.set(Calendar.SECOND, second); return result; } }