Path: utzoo!attcan!uunet!husc6!bloom-beacon!apple!rutgers!bellcore!tness7!killer!vector!rpp386!jfh From: jfh@rpp386.Dallas.TX.US (The Beach Bum) Newsgroups: comp.lang.c Subject: Re: Seconds from 19xx to Date (and visa Summary: ctime and emitc Message-ID: <7618@rpp386.Dallas.TX.US> Date: 6 Oct 88 12:33:12 GMT References: <5522@hoptoad.uucp> <44100014@hcx2> Reply-To: jfh@rpp386.Dallas.TX.US (The Beach Bum) Organization: River Parishes Programming, Dallas TX Lines: 19 In article <44100014@hcx2> danr@hcx2.SSD.HARRIS.COM writes: >> Does anyone have a routine to change back and forth between >>seconds from 19xx to a Year, Month, Day sort of Date? > > You might want to look at the man page for ctime(), if you have >access to one. it is in the standard library, so you don't need to write >anything bu the function call. I'd forgotten completely about unctime [ emitc ] which was recently posted. There is a recently posted function which understands ctime output format and can convert a ctime string into a long integer time. It was posted in comp.sources.misc in the last few months. -- John F. Haugh II (jfh@rpp386.Dallas.TX.US) HASA, "S" Division "Why waste negative entropy on comments, when you could use the same entropy to create bugs instead?" -- Steve Elias