diff --git a/src/convert_time.c b/src/convert_time.c index 42266b6..d465b90 100644 --- a/src/convert_time.c +++ b/src/convert_time.c @@ -28,4 +28,9 @@ double converter_hour_in_sec(double hour){ double converter_sec_in_hour(double sec){ double time = sec / 60 / 60; return time; +} + +double converter_days_to_years(double days){ + double time = days / 365; + return time; } \ No newline at end of file diff --git a/src/convert_time.h b/src/convert_time.h index fcd1b4c..380316a 100644 --- a/src/convert_time.h +++ b/src/convert_time.h @@ -7,6 +7,6 @@ double converter_hour_to_min(double hour); 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); #endif //THEADMIRALS_CONVERT_TIME_H