mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-26 11:11:00 +02:00
Refactor code: Replace SystemTime(x)/60 with MinutesPastMidnight(x)
This commit is contained in:
+13
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user