c_cvtsec - Convert a time in total seconds to hours, minutes, and seconds

SYNTAX

FUNCTION c_cvtsec(tsec, hour, min, sec, fsec)

     long	*tsec;
     long	*hour;
     long	*min;
     long	*sec;
     long	*fsec;

PARAMETERS

tsec (long *, input)

The time of day in total seconds.

hour (long *, output)

The hour of the day.

min (long *, output)

The minutes.

sec (long *, output)

The seconds.

fsec (long *, input)

Fractional seconds. fsec is not used at this time.

DESCRIPTION

The time of day in hours, minutes, and seconds is calculated in the following manner: The number of hours in tsec is calculated by tsec/3600. The hours are subtracted from tsec and the number of minutes is calculated by tsec/60. The minutes are subtracted from tsec and the remainder is sec.

c_cvtsec() is located in the file cvtime.c.

RETURN VALUE

c_cvtsec() has no return value.