sco-list: Want YYYYMMDD of yesterday in 'C'

sco-list: Want YYYYMMDD of yesterday in 'C'

Post by Bill Campbel » Fri, 03 Dec 1999 04:00:00


>I have a little 'C' application that I use to print out yesterday in
>'YYYYMMDD' format

>Today it reports yesterday as 19991201 (that's today,in my book)

>any suggestions of what's wrong, or better ways of doing it.

Subtract a day's worth of seconds from the current time before doing
the conversion.  I'm attaching a perl program I call ``yesterday''.


UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

It's very glamorous to raise millions of dollars, until it's time for the
venture capitalist to suck your eyeballs out.
                -- Peter Kennedy, chairman of Kraft & Kennedy.

2K Download