Created
July 18, 2019 08:03
-
-
Save jadbaz/b60e9c0fc70e6e962039c801f1502793 to your computer and use it in GitHub Desktop.
Javac one-liner for getting current date and time
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
echo "public class T { public static void main (String[] args) { System.out.println(new java.util.Date()); } }" > T.java; javac T.java; java T |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment