Java Minute Get getTimeInEpoch(int offSetInMinutes)

Here you can find the source of getTimeInEpoch(int offSetInMinutes)

Description

get Time In Epoch

License

Open Source License

Declaration

public static long getTimeInEpoch(int offSetInMinutes) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static long getTimeInEpoch(int offSetInMinutes) {
        //DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
        Date dNow = new Date();
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(dNow);//w w  w.j ava  2  s.c  om
        calendar.add(Calendar.MINUTE, offSetInMinutes);

        return calendar.getTimeInMillis() / 1000;
    }
}

Related

  1. getRemainingMinutes(final long ms)
  2. getRemainingMinutes(int minutes)
  3. getReminderMinutes(int option)
  4. getSecondsByMinutes(int minutes)
  5. getTimeFromMinutes(final int minutes)
  6. getTimeInMinuteResolution(long timeMillis)
  7. getTimeInMinutes(final String duration)
  8. getWholeMinutes(double coordinate)