Annotation of researchv10dc/man/man2/time.2, revision 1.1

1.1     ! root        1: .TH TIME 2
        !             2: .CT 2 time_man
        !             3: .SH NAME
        !             4: time, ftime \(mi get date and time
        !             5: .SH SYNOPSIS
        !             6: .nf
        !             7: .B long time((long *)0)
        !             8: .PP
        !             9: .B long time(tloc)
        !            10: .B long *tloc;
        !            11: .PP
        !            12: .B #include <sys/types.h>
        !            13: .B #include <sys/timeb.h>
        !            14: .B ftime(tp)
        !            15: .B struct timeb *tp;
        !            16: .fi
        !            17: .SH DESCRIPTION
        !            18: .I Time
        !            19: returns the time since the epoch 00:00:00 GMT, Jan. 1, 1970, measured
        !            20: in seconds.
        !            21: .PP
        !            22: If
        !            23: .I tloc
        !            24: is nonnull,
        !            25: the return value is also stored in the
        !            26: place to which
        !            27: .I tloc
        !            28: points.
        !            29: .PP
        !            30: .I Ftime
        !            31: stores a more accurate time and other horological data in the
        !            32: structure pointed to by
        !            33: .IR tb :
        !            34: .PP
        !            35: .nf
        !            36: .ta \w'\fLnnnnnnnn\fP'u +\w'\fLunsigned short millitm; \fP'u
        !            37: \fLstruct timeb
        !            38: {
        !            39:        \fLtime_t time;\fR      time since the epoch in seconds
        !            40:        \fLunsigned short millitm;\fP   up to 1000 milliseconds of more-precise interval
        !            41:        \fLshort timezone;\fP   local time zone measured in minutes of time
        !            42:                        westward from Greenwich
        !            43:        \fLshort dstflag;\fP    if nonzero, daylight saving time applies locally
        !            44:                        during the appropriate part of the year
        !            45: \fL};\fP
        !            46: .fi
        !            47: .SH "SEE ALSO"
        !            48: .IR date (1), 
        !            49: .IR stime (2), 
        !            50: .IR ctime (3)
        !            51: .SH DIAGNOSTICS
        !            52: .IR ftime :
        !            53: .B EFAULT
        !            54: .SH BUGS
        !            55: If the argument to
        !            56: .I time
        !            57: is bogus, the user program gets a memory fault rather than an
        !            58: .BR EFAULT .

unix.superglobalmegacorp.com

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