-
-
Save thomasstr/5379050 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
SimpleDateFormat smf = new SimpleDateFormat("dd-MM-YY HH:mm:ss"); | |
smf.setTimeZone(TimeZone.getTimeZone("UTC")); | |
System.out.println(smf.format(new Date())); | |
System.out.println(smf.format(new Date(1000*60*10))); | |
System.out.println(new java.util.Date(1364768456)); |
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
13-04-13 16:20:38 | |
01-01-70 00:10:00 | |
Fri Jan 16 20:06:08 CET 1970 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment