Android Time Get getTimestamp()

Here you can find the source of getTimestamp()

Description

generate current timestamp

Declaration


private static String getTimestamp() 

Method Source Code

//package com.java2s;

public class Main {
    /**/* w  w w .  ja v a2  s.  c  o m*/
     * generate current timestamp
     * 
     * @return
     */
    // ----------------------------------------------------------------------------------
    private static String getTimestamp() {
        return "" + (System.currentTimeMillis() / 1000);
    }
}

Related

  1. getLongTime()
  2. getRequestTime()
  3. getSystemTime()
  4. getTime1()
  5. getTimeInMillis()
  6. getUTCTime()
  7. getUnixTime()
  8. getUnixTime()