SyntaxFix
Write A Post
Hire A Developer
Questions
After java 8, you may want to get the formatted time as below:
DateTimeFormatter.ofPattern("HH:mm:ss.SSS").format(LocalTime.now(ZoneId.of("GMT")));