Java Second Get currentTimeAsSeconds()

Here you can find the source of currentTimeAsSeconds()

Description

current Time As Seconds

License

Open Source License

Declaration

public static long currentTimeAsSeconds() 

Method Source Code

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

public class Main {
    public static long currentTimeAsSeconds() {
        return System.currentTimeMillis() / 1000;
    }/*  ww  w .  j a v a  2s. co  m*/
}

Related

  1. currentTimeInSeconds()
  2. currentTimePlusNSeconds(long n)
  3. currentTimeSecond()
  4. currentTimeSecond()