Java Timestamp Now currentTimeStamp()

Here you can find the source of currentTimeStamp()

Description

Return current date and time in terse format

License

Open Source License

Declaration

public static String currentTimeStamp() 

Method Source Code

//package com.java2s;

public class Main {
    /** Return current date and time in terse format 
     *///  ww w.  j av  a 2 s  .com
    public static String currentTimeStamp() {
        java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("MM/dd/yy HH:mm:ss");
        return df.format(new java.util.Date(System.currentTimeMillis())) + " ";
    }
}

Related

  1. currentTimeStamp()
  2. currentTimestamp()
  3. currentTimestamp()
  4. currentTimeStamp()
  5. currentTimestamp()
  6. currentTimestamp2String(String pattern)
  7. currentTimestampPlus(final long seconds)