how java current time is calcilated code example Example: calculate time java System.out.println(LocalTime.now());