Annotation of researchv10no/cmd/netnews/src/ftime.c, revision 1.1

1.1     ! root        1: static char *SccsId = "@(#)ftime.c     2.3     3/3/83";
        !             2: 
        !             3: #include <sys/types.h>
        !             4: struct timeb
        !             5: {
        !             6:        time_t  time;
        !             7:        unsigned short millitm;
        !             8:        short   timezone;
        !             9:        short   dstflag;
        !            10: };
        !            11: 
        !            12: extern long timezone;
        !            13: extern int  daylight;
        !            14: 
        !            15: ftime(tp)
        !            16: struct timeb *tp;
        !            17: {
        !            18:        long t;
        !            19: 
        !            20:        time(&t);
        !            21:        tp->time = t;
        !            22:        tp->millitm = 0;
        !            23:        tp->timezone = timezone/60;
        !            24:        tp->dstflag = daylight;
        !            25: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.