Java Second Get getCurrentTimeInSeconds()

Here you can find the source of getCurrentTimeInSeconds()

Description

get Current Time In Seconds

License

BSD License

Declaration

public static Long getCurrentTimeInSeconds() 

Method Source Code

//package com.java2s;
/*L//w ww  .ja v a  2s.co  m
 *  Copyright Washington University in St. Louis
 *  Copyright SemanticBits
 *  Copyright Persistent Systems
 *  Copyright Krishagni
 *
 *  Distributed under the OSI-approved BSD 3-Clause License.
 *  See http://ncip.github.com/catissue-migration-tool/LICENSE.txt for details.
 */

public class Main {
    public static Long getCurrentTimeInSeconds() {
        return System.currentTimeMillis() / 1000;
    }
}

Related

  1. getClockSkewInSeconds()
  2. getCronBySecondScheduler(int second)
  3. getCurrentMiliseconds()
  4. getCurrentSecondString()
  5. getCurrentSecondZeroFillString()
  6. getCurrentTimeSeconds()
  7. getDayFromSeconds(long seconds)
  8. getFramesFromSeconds(Double seconds)
  9. getMSTimeInSeconds(final String timeStr)