Here you can find the source of after(final Calendar first, final Calendar second)
public static boolean after(final Calendar first, final Calendar second)
//package com.java2s; /******************************************************************************* * Copyright (c) 2009 Lifeform Software. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors:/*from ww w . ja v a2 s. c om*/ * Ernan Hughes - initial API and implementation *******************************************************************************/ import java.util.Calendar; public class Main { public static boolean after(final Calendar first, final Calendar second) { return !before(first, second); } public static boolean before(final Calendar first, final Calendar second) { return first.compareTo(second) < 0; } }