Java Calendar Second after(final Calendar first, final Calendar second)

Here you can find the source of after(final Calendar first, final Calendar second)

Description

after

License

Open Source License

Declaration

public static boolean after(final Calendar first, final Calendar second) 

Method Source Code

//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;
    }
}

Related

  1. clearCalendarSecondWithRear(Calendar cal)
  2. dateEquals(Calendar calendarFirst, Calendar calendarSecond)
  3. getSecond(Calendar calendar)
  4. getSecondsSinceMidnight(Calendar c)