Created
October 30, 2015 02:37
-
-
Save victorvaz/05849c587e620d624a61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mostrar a UNIX Time atual | |
*/ | |
public class UnixTime | |
{ | |
public static void main(String[] args) | |
{ | |
// Pegamos o tempo em milisegundos e dividimos por 1000 para pegar os segundos: | |
long unixTime = System.currentTimeMillis() / 1000; | |
System.out.println(unixTime); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment