Java Day End getSubSeconds(Date minuendDate, Date subDate)

Here you can find the source of getSubSeconds(Date minuendDate, Date subDate)

Description

get Sub Seconds

License

Apache License

Declaration

public static int getSubSeconds(Date minuendDate, Date subDate) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static int getSubSeconds(Date minuendDate, Date subDate) {
        Calendar minuend = Calendar.getInstance();
        minuend.setTime(minuendDate);/*  w  w w .j  a  v  a2  s . c o  m*/

        Calendar sub = Calendar.getInstance();
        sub.setTime(subDate);

        return minuend.get(Calendar.SECOND) - sub.get(Calendar.SECOND);

    }
}

Related

  1. getSCDEndDate()
  2. getSecondSemesterEndDate(Integer year)
  3. getSendTime(Date sendDate, Date start, Date end)
  4. getStartAndEndDate(Date d)
  5. getStartOrEndTime(Date date, int flag)
  6. getTimeBeetweenDates(Date d1, Date d2, int timeType)
  7. getTimeInterval(Date startDate, Date endDate)
  8. getTotalDays(Date startDate, Date endDate)
  9. getTotalMonths(final Date startDateToCheck, final Date endDateToCheck)