From 925c68075760855a66ae5f689fc9e65eeff8d591 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Thu, 8 Feb 2024 19:01:59 +0100 Subject: [PATCH] Add converter years to days --- src/convert_time.c | 5 +++++ src/convert_time.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/convert_time.c b/src/convert_time.c index 3ac150e..6f7f163 100644 --- a/src/convert_time.c +++ b/src/convert_time.c @@ -37,4 +37,9 @@ double converter_sec_in_hour(double sec){ double converter_days_to_years(double days){ double time = days / 365; return time; +} + +double converter_years_to_days(double years){ + double time = years * 365; + return time; } \ No newline at end of file diff --git a/src/convert_time.h b/src/convert_time.h index 380316a..ac2ec74 100644 --- a/src/convert_time.h +++ b/src/convert_time.h @@ -8,5 +8,6 @@ double converter_min_to_hour(double min); double converter_hour_in_sec(double hour); double converter_sec_in_hour(double sec); double converter_days_to_years(double days); +double converter_years_to_days(double years); #endif //THEADMIRALS_CONVERT_TIME_H