|
| iMatix home page | << | < | > | >> |
SFLVersion 2.10 |
#include "sfldate.h" long csecs_to_time (long csecs)
Converts a number of centiseconds (< INTERVAL_DAY) into a time value (HHMMSSCC).
{
long
hour,
min,
sec;
ASSERT (csecs < INTERVAL_DAY);
hour = csecs / INTERVAL_HOUR;
csecs = csecs % INTERVAL_HOUR;
min = csecs / INTERVAL_MIN;
csecs = csecs % INTERVAL_MIN;
sec = csecs / INTERVAL_SEC;
csecs = csecs % INTERVAL_SEC;
return (MAKE_TIME (hour, min, sec, csecs));
}
| | << | < | > | >> |
|