Browse Source

Add converter years to days

remotes/origin/develop
Jonas Zitzmann 11 months ago
parent
commit
925c680757
  1. 5
      src/convert_time.c
  2. 1
      src/convert_time.h

5
src/convert_time.c

@ -38,3 +38,8 @@ double converter_days_to_years(double days){
double time = days / 365; double time = days / 365;
return time; return time;
} }
double converter_years_to_days(double years){
double time = years * 365;
return time;
}

1
src/convert_time.h

@ -8,5 +8,6 @@ double converter_min_to_hour(double min);
double converter_hour_in_sec(double hour); double converter_hour_in_sec(double hour);
double converter_sec_in_hour(double sec); double converter_sec_in_hour(double sec);
double converter_days_to_years(double days); double converter_days_to_years(double days);
double converter_years_to_days(double years);
#endif //THEADMIRALS_CONVERT_TIME_H #endif //THEADMIRALS_CONVERT_TIME_H
Loading…
Cancel
Save