Created
March 14, 2016 17:09
-
-
Save victorvaz/1cfc62a86d513675d149 to your computer and use it in GitHub Desktop.
This file contains 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
package datanojava; | |
public class UnixTime { | |
public static void main(String[] args) { | |
long unixTimeAtual = System.currentTimeMillis() / 1000L; | |
System.out.println(unixTimeAtual); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment