import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

public class Main {
	public static void main(String[] args) {
		DateTimeFormatter dtf = DateTimeFormatter.ofPattern("hh:mm a", Locale.ENGLISH);

		LocalTime start = LocalTime.parse("00:00");
		LocalTime end = LocalTime.parse("23:59");

		System.out.println(start.format(dtf));
		System.out.println(end.format(dtf));

		LocalDate today = LocalDate.now();

		LocalDateTime ldtStart = start.atDate(today);
		LocalDateTime ldtEnd = end.atDate(today);
		System.out.println(ldtStart);
		System.out.println(ldtEnd);

		// Notice the result when you add a minute to ldtEnd
		System.out.println(ldtEnd.plusMinutes(1));
	}
}