Java Millisecond Current Get getMillisecondStamp(Date date)

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

Description

get Millisecond Stamp

License

Apache License

Declaration

public static String getMillisecondStamp(Date date) 

Method Source Code


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

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getMillisecondStamp(Date date) {
        DateFormat fmt = new SimpleDateFormat("HHmmssSSS");
        return fmt.format(date);
    }//from w  ww  .j a v  a  2  s.  c  o  m
}

Related

  1. getCurrentMillisecondZeroFillString()
  2. getCurrentTimeMillisStr()
  3. getMillins(String yyyyMMddHHmmss)
  4. getMillisDurationString(long millis)
  5. getMillisec_old(String isoDate)
  6. getMilliSecondToTomorrow(Date date)
  7. getMillisFromISO8601(Object iso8601)
  8. getMillisFromRFC822String(Object rfc822)
  9. getMillisFromString(String s)