This commit is contained in:
Seth Samuel 2024-10-22 23:57:27 +13:00
parent abdb390678
commit 3681b45183
6 changed files with 4536 additions and 0 deletions

16
helperFunctions.h Normal file
View file

@ -0,0 +1,16 @@
char * hoursToString(double h, char *str)
{
int m = int(round(h * 60));
int hr = (m / 60) % 24;
int mn = m % 60;
str[0] = (hr / 10) % 10 + '0';
str[1] = (hr % 10) + '0';
str[2] = ':';
str[3] = (mn / 10) % 10 + '0';
str[4] = (mn % 10) + '0';
str[5] = '\0';
return str;
}