Created
March 11, 2020 18:13
-
-
Save theodesp/68c30832def2cb601d5c2529f142cb5d to your computer and use it in GitHub Desktop.
Get current 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
package com.thdespou; | |
import java.util.Date; | |
public class Main { | |
public static void main(String[] args) { | |
// Date | |
Date now = new Date(); | |
System.out.println("Current Date in milliseconds is :" + now.getTime()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment