Browse Source

add new converter: hour to sec

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

5
src/convert_time.c

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

1
src/convert_time.h

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