Browse Source

add new converter: sec to hour

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

5
src/convert_time.c

@ -23,4 +23,9 @@ double converter_min_to_hour(double min){
double converter_hour_in_sec(double hour){
double time = hour * 60 * 60;
return time;
}
double converter_sec_in_hour(double sec){
double time = sec / 60 / 60;
return time;
}

1
src/convert_time.h

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