Java Second Get currentTimeSeconds()

Here you can find the source of currentTimeSeconds()

Description

A method to get the unix time...

License

Open Source License

Return

The current time in seconds

Declaration

public static long currentTimeSeconds() 

Method Source Code

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

public class Main {
    /**/*from w ww . j  a v a 2s  .  c  om*/
     * A method to get the unix time...
     *
     * @return The current time in seconds
     */
    public static long currentTimeSeconds() {
        return (System.currentTimeMillis() / 1000);
    }
}

Related

  1. currentTimeAsSeconds()
  2. currentTimeInSeconds()
  3. currentTimePlusNSeconds(long n)
  4. currentTimeSecond()
  5. currentTimeSecond()
  6. currentTimeSeconds()
  7. currentTimeSeconds()
  8. getClockSkewInSeconds()
  9. getCronBySecondScheduler(int second)