Java Second Get currentTimeSecond()

Here you can find the source of currentTimeSecond()

Description

current Time Second

License

Apache License

Declaration

public static int currentTimeSecond() 

Method Source Code

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

public class Main {

    public static int currentTimeSecond() {
        return Long.valueOf(System.currentTimeMillis() / 1000).intValue();
    }/*from   w w  w .  ja  va 2s.c  om*/
}

Related

  1. currentTimeAsSeconds()
  2. currentTimeInSeconds()
  3. currentTimePlusNSeconds(long n)
  4. currentTimeSecond()
  5. currentTimeSeconds()
  6. currentTimeSeconds()
  7. currentTimeSeconds()