*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: time | Section: 2 | Source: UNIX v10 | File: time.2
TIME(2) System Calls Manual TIME(2) NAME time, ftime - get date and time SYNOPSIS long time((long *)0) long time(tloc) long *tloc; #include <sys/types.h> #include <sys/timeb.h> ftime(tp) struct timeb *tp; DESCRIPTION Time returns the time since the epoch 00:00:00 GMT, Jan. 1, 1970, mea- sured in seconds. If tloc is nonnull, the return value is also stored in the place to which tloc points. Ftime stores a more accurate time and other horological data in the structure pointed to by tb: struct timeb { time_t time; time since the epoch in seconds unsigned short millitm; up to 1000 milliseconds of more-precise interval short timezone; local time zone measured in minutes of time westward from Greenwich short dstflag; if nonzero, daylight saving time applies locally during the appropriate part of the year }; SEE ALSO date(1), stime(2), ctime(3) DIAGNOSTICS ftime: EFAULT BUGS If the argument to time is bogus, the user program gets a memory fault rather than an EFAULT. TIME(2)

Navigation Options