Re: [ILUG] $yesterday

From: Brian Scanlan (bscanlan at domain irish-times.com)
Date: Tue 23 Oct 2001 - 18:10:16 IST


On Tue, Oct 23, 2001 at 12:49:32PM -0400, Baldwin_James at domain emc.com wrote:
>
> Anyone know of a YESTERDAY binary hanging about either compiled or
> compilable on Solaris ?
> ;)

If you insist..

#include <sys/types.h>
#include <time.h>

main()
{
        time_t moo=time(0)-86400;
        printf("%s",ctime(&moo));
        return;
}

Brian.

-- 
Brian Scanlan, Systems Administrator.
Irish Times New Media - http://www.ireland.com


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:52 GMT