Java Milliseconds getMillisecond(Date date)

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

Description

get Millisecond

License

Open Source License

Declaration

public static int getMillisecond(Date date) 

Method Source Code

//package com.java2s;
import java.util.*;

public class Main {
    public static Calendar calendar = new GregorianCalendar();

    public static int getMillisecond(Date date) {
        calendar.setTime(date);/*  ww  w. j av a2 s .  c o  m*/
        return calendar.get(Calendar.MILLISECOND);
    }
}

Related

  1. getMillis(String _cal)
  2. getMillis(String dateStr)
  3. getMillis(String decimal)
  4. getMillisDisplayable(long millis)
  5. getMilliSecond(Date d1, Date d2)
  6. getMillisecond(String forDate)
  7. getMilliSecondBetween(long start, long end)
  8. getMillisecondDay()
  9. getMilliSeconds(String input)