Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site pertec.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!crsp!pesnta!pertec!chrsbmw From: chrsbmw@pertec.UUCP (chris mihaly) Newsgroups: net.unix-wizards,net.wanted,net.wanted.sources,net.micro.pc,net.unix Subject: time() function for PCDOS Message-ID: <295@pertec.UUCP> Date: Fri, 25-Jan-85 00:59:50 EST Article-I.D.: pertec.295 Posted: Fri Jan 25 00:59:50 1985 Date-Received: Sat, 26-Jan-85 05:38:43 EST Distribution: net Organization: Pertec Computer Corp., Irvine, CA Lines: 23 Xref: watmath net.unix-wizards:11712 net.wanted:5628 net.wanted.sources:372 net.micro.pc:3195 net.unix:3443 Q Inovations C Compiler. I have almost completed it except that I have run into a problem trying to design a C routine that would be the equivalent of Unix's time() function. I have the following information available to me: year from 1980, month, day, hour and seconds I need to devise from this a 32 bit long integer equivalent to time(). If anyone knows of the algorithm to do this, or better yet has written a routine for this, please forward it to me. Thank you for any help, month -- Christopher D. Mihaly {ucbvax!unisoft | scgvaxd | trwrb | felix}!pertec!chrsbmw or {ucbvax!ucivax | trwrb | unisoft!pertec}!csuf!chrsbmw "But you told me to type rm * .o and it came back with 'rm: .o nonexistent'"