Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/**
 *    Transform date or time to various formats
 * 
 * @copyright   Copyright (C) 2012 - 2013 Information Technology Institute ITI-CERTH. All rights reserved.
 * @license     GNU Affero General Public License version 3 or later; see LICENSE.txt
 * @author      Dimitrios Ververidis for the Multimedia Group (http://mklab.iti.gr). 
 *
 */

import java.util.Date;

public class Main {
    /**
     *  This method is used to find the no of minutes between dates
     * @param dateEarly
     * @param dateLater
     * @return
     */
    public static long calculateMinutes(Date dateEarly, Date dateLater) {
        return (dateLater.getTime() - dateEarly.getTime()) / 1000 / 60;
    }
}