Java Date to Time getTimeImMillis(Date date)

Here you can find the source of getTimeImMillis(Date date)

Description

get Time Im Millis

License

Apache License

Declaration

public static long getTimeImMillis(Date date) 

Method Source Code

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

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

public class Main {
    public static long getTimeImMillis(Date date) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);//  w  w w  .  j  a v a 2s. c  o  m
        return cal.getTimeInMillis();
    }
}

Related

  1. getTimeDateByMinuteAndSeconds( Integer minutes, Integer seconds)
  2. getTimeDateStr(Date date)
  3. getTimeDeltaValue(Date t, Date baseDate, String tDelta)
  4. getTimeFromDate(Date date)
  5. getTimeFromDate(final Date date)
  6. getTimeInSeconds(Date date)
  7. getTimeInterval(Date fromDate)
  8. getTimeIntervalMins(Date firstDate, Date lastDate)
  9. getTimeLocalWithoutDst(java.util.Date d)