Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!cadre!pitt!darth!libove!root From: root@libove.UUCP (Jay M. Libove) Newsgroups: comp.lang.c Subject: From (struct tm) to (time_t) ? Message-ID: <182@libove.UUCP> Date: 22 Oct 88 14:03:19 GMT Organization: Libove; Pittsburgh, PA Lines: 17 Well, there are wonderful functions standard with C for getting the system date in long int (time_t) format, and for converting it to a pretty structure (struct tm) with all the pieces broken out... but there is no way I know of to fill in such a structure and make a time_t out of it... e.g. for System V "touch" which allows a date argument to be given. Does anyone have the code for this (struct tm) to (time_t) conversion? Thanks! -- Jay Libove ARPA: jl42@andrew.cmu.edu or libove@cs.cmu.edu 5731 Centre Ave, Apt 3 BITnet: jl42@andrew or jl42@drycas Pittsburgh, PA 15206 UUCP: uunet!nfsun!libove!libove or (412) 362-8983 UUCP: psuvax1!pitt!darth!libove!libove