From 89348dd75293858fa2802a0a5c7f3651023bfed4 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Thu, 8 Feb 2024 18:26:47 +0100 Subject: [PATCH] add new converter: Hour to min --- src/convert_time.c | 6 ++++++ src/convert_time.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/convert_time.c b/src/convert_time.c index 22b705a..76d8279 100644 --- a/src/convert_time.c +++ b/src/convert_time.c @@ -9,3 +9,9 @@ double converter_min_to_sec(double min){ double time = min * 60; return time; } + +double converter_hour_to_min(double hour){ + double time = hour * 60; + return time; +} + diff --git a/src/convert_time.h b/src/convert_time.h index bbadf16..a61eed5 100644 --- a/src/convert_time.h +++ b/src/convert_time.h @@ -3,5 +3,6 @@ double converter_sec_to_min(double sec); double converter_min_to_sec(double min); +double converter_hour_to_min(double hour) #endif //THEADMIRALS_CONVERT_TIME_H