import java.text.SimpleDateFormat;
import java.util.Date;
public class MyClass {
public static void main(String args[]) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
String currentTime = sdf.format(new Date());
System.out.println(currentTime);
}
}
/*
run:
2023-11-28 11:09:43.089
*/