Created
September 10, 2018 15:38
-
-
Save mrbald/d9dd7ebd5a55a70ff4e77d2092162fd1 to your computer and use it in GitHub Desktop.
Epoch millis to UTC datetime converter in Java
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
import static java.time.Instant.ofEpochMilli; | |
import static System.out; | |
class ts2dt { | |
public static void main(String... args) { | |
out.println(ofEpochMilli(Long.valueOf(args[0]))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment