Browse Source

add new converter: days to years

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

5
src/convert_time.c

@ -28,4 +28,9 @@ double converter_hour_in_sec(double hour){
double converter_sec_in_hour(double sec){ double converter_sec_in_hour(double sec){
double time = sec / 60 / 60; double time = sec / 60 / 60;
return time; return time;
}
double converter_days_to_years(double days){
double time = days / 365;
return time;
} }

2
src/convert_time.h

@ -7,6 +7,6 @@ double converter_hour_to_min(double hour);
double converter_min_to_hour(double min); 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);
#endif //THEADMIRALS_CONVERT_TIME_H #endif //THEADMIRALS_CONVERT_TIME_H
Loading…
Cancel
Save