79689464

Date: 2025-07-03 21:18:51
Score: 0.5
Natty:
Report link

You can do it without implementing any TemporalUnit:

System.out.println(time
                .withNano((time.getNano() / 100000000) * 100000000)
                .truncatedTo(ChronoUnit.MILLIS));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Peter Adrian