Refactor code: Replace SystemTime(x)/60 with MinutesPastMidnight(x)

This commit is contained in:
Dianne Skoll
2023-12-09 10:41:03 -05:00
parent 8296d2b962
commit 6e53fd6924
7 changed files with 28 additions and 21 deletions
+13
View File
@@ -760,6 +760,19 @@ long SystemTime(int realtime)
(long) t->tm_sec;
}
/***************************************************************/
/* */
/* MinutesPastMidnight */
/* */
/* Return the system time in minutes past midnight */
/* */
/***************************************************************/
int MinutesPastMidnight(int realtime)
{
return (int) (SystemTime(realtime) / 60);
}
/***************************************************************/
/* */
/* SystemDate */