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

@ -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;
}

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_sec_in_hour(double sec);
double converter_days_to_years(double days);
double converter_years_to_days(double years);
#endif //THEADMIRALS_CONVERT_TIME_H
Loading…
Cancel
Save