home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff346.lzh
/
Timetest
/
Timetest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-04-15
|
486b
|
31 lines
/*
sample proggi to test out the
lettuce time functions
by Olli
*/
#include <time.h>
#include <stdio.h>
int main(char **argv,int argc)
{
long t;
struct tm *ts;
time(&t);
ts=gmtime(&t);
printf("tm_sec=%d tm_min=%d tm_hour=%d\n\
tm_mday=%d tm_mon=%d tm_year=%d\n\
tm_wday=%d tm_yday=%d tm_isdst=%d\n",
ts->tm_sec,ts->tm_min,ts->tm_hour,
ts->tm_mday,ts->tm_mon,ts->tm_year,
ts->tm_wday,ts->tm_yday,ts->tm_isdst);
return(0);
}