| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

time_to_min

#include "sflslot.h"
int
time_to_min (long time)

Synopsis

Extracts the minute value (0..1439) for the specified time. The time is an 8-digit number: HHMMSSCC.

Source Code - (sflslot.c)

{
    int
        hour,                           /*  Hour component of time           */
        minute;                         /*  Minute component of time         */

    hour   = (int)  (time / 1000000L);
    minute = (int) ((time % 1000000L) / 10000L);
    minute += hour * 60;
    return (minute);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix