Date Gettime


code-fun java

Long time ago I’ve found this little gem:

new Long(new Date().getTime()).toString();

which is just the same but less confusing as:

String.valueOf(System.currentTimeMillis());