| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sfldate.h" long timer_to_gmtime (time_t time_secs)
Converts the supplied timer value into a long time value in Greenwich Mean Time (GMT). Times are stored as long values: HHMMSS00. On most systems the clock does not return centiseconds, so these are set to zero. If the supplied value is zero, returns zero.
{ struct tm *time_struct; if (time_secs == 0) return (0); else { /* Convert into a long value HHMMSS00 */ time_struct = safe gmtime (&time_secs); if (time_struct == NULL) /* If gmtime is not implemented */ time_struct = safe localtime (&time_secs); return (MAKE_TIME (time_struct-> tm_hour, time_struct-> tm_min, time_struct-> tm_sec, 0)); } }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |