convert user entered time to seconds?

Doug Toppin toppin at melpar.UUCP
Sat Jul 8 02:58:36 AEST 1989


I recently posted a question asking if anyone knew of a system
function to convert a user entered time into seconds since the epoch.
I foolishly posted before checking the archives. After checking
I found 'tm_to_time' in volume4 of comp.sources.unix. This
takes year/month/day in a 'struct tm' and returns 'time_t' which
is the seconds since epoch. I works well and is very small
54-lines, 800-bytes object.
sorry



More information about the Comp.unix.questions mailing list