Java Second Get getCurrentSecondString()

Here you can find the source of getCurrentSecondString()

Description

Returns a string of current timestamp with second precision.

License

Apache License

Return

A string containing the current timestamp.

Declaration

public static String getCurrentSecondString() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/*from   www.j a  va  2 s . co m*/
     * Returns a string of current timestamp with second precision.
     * 
     * @return A string containing the current timestamp.
     */
    public static String getCurrentSecondString() {
        return String.valueOf(System.currentTimeMillis() / 1000);
    }
}

Related

  1. currentTimeSeconds()
  2. currentTimeSeconds()
  3. getClockSkewInSeconds()
  4. getCronBySecondScheduler(int second)
  5. getCurrentMiliseconds()
  6. getCurrentSecondZeroFillString()
  7. getCurrentTimeInSeconds()
  8. getCurrentTimeSeconds()
  9. getDayFromSeconds(long seconds)