From 7ca436ef0edae7d6838d6a601e7d671f0dcb0806 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 9 Jun 2024 18:06:54 +0200 Subject: [PATCH] add max work time --- src/main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 1ad4318..162cda8 100644 --- a/src/main.c +++ b/src/main.c @@ -34,10 +34,14 @@ int main(int argc, char* argv[]) now_tm.tm_hour, now_tm.tm_min); - time_t work_end_eight_hours = get_eight_hour_end_worktime(begin); + time_t work_end = get_eight_hour_end_worktime(begin); char timestr[6]; - get_time_str(work_end_eight_hours, timestr); - printf("Sollarbeitzeit bis: %s\n", timestr); + get_time_str(work_end, timestr); + printf("Sollarbeitzeit bis 8 Std: %s\n", timestr); + + work_end = get_ten_hour_end_worktime(begin); + get_time_str(work_end, timestr); + printf("Naximale Arbeitzeit von 10 Std: %s\n", timestr); return 0; } \ No newline at end of file -- 2.39.5