mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-24 01:00:19 +00:00
7 lines
134 B
C
7 lines
134 B
C
#include <stdio.h>
|
|
|
|
void min2time(int mm, int *ph, int *pm)
|
|
{
|
|
*ph = (mm / 60) % 24;
|
|
*pm = (mm - ((mm / 60) % 24) * 60) % 60;
|
|
} |