I believe what you need is mktime(3) (that is, "man 3 mktime"). Read the man pages of the associated functions too. You may be better served if you direct your questions to the Linux C Programming mailing list. Rafael -- PMoraza@aol.com wrote:
I follow this procedure to use gettimeofday() ... 1. #include
and 2. declare timeval and timezone structs ... struct timeval tv; struct timezone tz;
3. pass tv and tz to gettimeofday (look at man gettimeofday) ...
gettimeofday(&tv, &tz);
4. assign the member elements in the timeval struct (from #3) to long variables (or you do whatever else you had in mind) ...
s_sec = tv.tv_sec; s_msec = tv.tv_usec;
linuxCprogramming mailing list linuxCprogramming@i-docs.net http://mail.i-docs.org/mailman/listinfo/linuxcprogramming
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/