[comp.unix.questions] convert user entered time to seconds?

toppin@melpar.UUCP (Doug Toppin) (07/07/89)

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