#include <stdlib.h>
#include <time.h>
#include "time_format.h"
+#include "worktime.h"
int main(int argc, char* argv[])
{
gmtime_r(&begin, &begin_tm);
begin_tm.tm_hour = atoi(argv[1]);
begin_tm.tm_min = atoi(argv[2]);
+ begin = mktime(&begin_tm);
time_t now = 0;
struct tm now_tm;
now_tm.tm_hour,
now_tm.tm_min);
+ time_t work_end_eight_hours = get_eight_hour_end_worktime(begin);
+ char timestr[6];
+ get_time_str(work_end_eight_hours, timestr);
+ printf("Sollarbeitzeit bis: %s\n", timestr);
+
return 0;
}
\ No newline at end of file