prompt for lunch only until expected lunch time
This commit is contained in:
		@@ -78,7 +78,9 @@ public class LoadingBar {
 | 
				
			|||||||
      var br = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));
 | 
					      var br = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));
 | 
				
			||||||
      print("Ankunftszeit: ");
 | 
					      print("Ankunftszeit: ");
 | 
				
			||||||
      var startTime = LocalTime.parse(br.readLine(), TIME_FORMATTER).truncatedTo(ChronoUnit.MINUTES);
 | 
					      var startTime = LocalTime.parse(br.readLine(), TIME_FORMATTER).truncatedTo(ChronoUnit.MINUTES);
 | 
				
			||||||
 | 
					      if (startTime.until(LocalTime.now(), ChronoUnit.MINUTES) < DEFAULT_NUMBER_WORK_MINS_BEFORE_LUNCH) {
 | 
				
			||||||
         handleMittagspause(br, startTime);
 | 
					         handleMittagspause(br, startTime);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
      handleZapfenstreich(br, startTime);
 | 
					      handleZapfenstreich(br, startTime);
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user