how can take time java from date time code example Example: calculate time java System.out.println(LocalTime.now());