Android Time Get getTimestamp()

Here you can find the source of getTimestamp()

Description

get Timestamp

Declaration

public static String getTimestamp() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getTimestamp() {
        SimpleDateFormat sdf = new SimpleDateFormat(
                "[yyyy-MM-dd EEE HH:mm]");
        return sdf.format(new Date());
    }//from   w  w w .  j  a  v  a2s . c  om
}

Related

  1. getTime()
  2. getCurrentlyDateTime()
  3. now()
  4. getTimeStamp()
  5. getTimeString(long time)
  6. getCurrentTime()
  7. getCurrentTime()
  8. getCurrentTimeStamp()
  9. getNow()