get milliseconds in local time java code example
Example: java get current milliseconds
package com.tutorialspoint;
import java.lang.*;
public class SystemDemo {
public static void main(String[] args) {
// returns the current time in milliseconds
System.out.print("Current Time in milliseconds = ");
System.out.println(System.currentTimeMillis());
}
}