From 5aaffa84671048c33fc65dfc68c16913bebbeac9 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Thu, 8 Feb 2024 18:31:21 +0100 Subject: [PATCH] add new converter: min to hour --- src/convert_time.c | 4 ++++ src/convert_time.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/convert_time.c b/src/convert_time.c index 76d8279..36b9599 100644 --- a/src/convert_time.c +++ b/src/convert_time.c @@ -15,3 +15,7 @@ double converter_hour_to_min(double hour){ return time; } +double converter_min_to_hour(double min){ + double time = min / 60; + return time; +} \ No newline at end of file diff --git a/src/convert_time.h b/src/convert_time.h index b27c0f3..e48117f 100644 --- a/src/convert_time.h +++ b/src/convert_time.h @@ -4,5 +4,6 @@ double converter_sec_to_min(double sec); double converter_min_to_sec(double min); double converter_hour_to_min(double hour); +double converter_min_to_hour(double min); #endif //THEADMIRALS_CONVERT_TIME_H