Java Timestamp Create getTimestamp()

Here you can find the source of getTimestamp()

Description

get Timestamp

License

Open Source License

Declaration

public static String getTimestamp() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.DateFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    private static DateFormat D16 = new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'");

    public static String getTimestamp() {
        synchronized (D16) {
            return D16.format(new Date());
        }//from ww w.  j av  a  2 s  .com
    }
}

Related

  1. createTimeStamps()
  2. getTimestamp()
  3. getTimestamp()
  4. getTimestamp()
  5. getTimeStamp()
  6. getTimestamp()
  7. getTimeStamp()
  8. getTimeStamp()
  9. getTimestamp()