Android Time Get getLongTime()

Here you can find the source of getLongTime()

Description

get Long Time

Declaration

public static String getLongTime() 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getLongTime() {
        Date curDate = new Date(System.currentTimeMillis());
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhhmmssSSS");
        String result = sdf.format(curDate);
        return result;
    }/*from  w w w  .  ja v  a2 s  . c o m*/
}

Related

  1. now()
  2. getCompactTime()
  3. getCurrentEpochTime()
  4. getCurrentTime()
  5. getDateTime()
  6. getRequestTime()
  7. getSystemTime()
  8. getTime1()
  9. getTimeInMillis()