Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!caip!clyde!cbatt!cbosgd!ihnp4!chinet!rlk From: rlk@chinet.UUCP (Richard Klappal) Newsgroups: net.unix Subject: Re: converting a tm struct. into seconds Message-ID: <437@chinet.UUCP> Date: Wed, 23-Jul-86 00:07:09 EDT Article-I.D.: chinet.437 Posted: Wed Jul 23 00:07:09 1986 Date-Received: Fri, 25-Jul-86 07:01:45 EDT References: <123@spp5.UUCP> Reply-To: rlk@chinet.UUCP (Richard Klappal) Distribution: net Organization: chi-net, Public Access UN*X, Chicago IL Lines: 14 In article <123@spp5.UUCP> brahms@spp5.UUCP (Bradley S. Brahms) writes: >Could someone please either post or send me the formula (in c hopefully) >for changing a tm struct back into the number of seconds since 00:00:00, >GMT, Jan 1, 1970? Thanx. Marc Rochkind's book on advanced un*x programming has a 2 page+/- routine to convert a date (yymmddhhmmss) into seconds. The mods to handle the tm_ struct would be trivial. -- --- UUCP: ..!ihnp4!chinet!uklpl!rlk || MCIMail: rklappal || Compuserve: 74106,1021 ..!ihnp4!ihu1h!rlk ---