convert from time_t to number of seconds */
| 984 | |
| 985 | /* convert from time_t to number of seconds */ |
| 986 | long |
| 987 | timet_to_seconds(time_t ttim) |
| 988 | { |
| 989 | /* for Unix-based and Posix-compliant systems, a cast to 'long' would |
| 990 | suffice but the C Standard doesn't require time_t to be that simple */ |
| 991 | return timet_delta(ttim, (time_t) 0); |
| 992 | } |
| 993 | |
| 994 | /* calculate the difference in seconds between two time_t values */ |
| 995 | long |
no test coverage detected