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