8000 minix/man/man2/gettimeofday.2 at R3.2.1 · devinblood/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 498 Bytes

gettimeofday.2

File metadata and controls

22 lines (21 loc) · 498 Bytes
.TH GETTIMEOFDAY 2 "July 6, 2005"
.UC 4
.SH NAME
gettimeofday \- get date and time
.SH SYNOPSIS
.ft B
.nf
#include <sys/time.h>
int gettimeofday(struct timeval *tp, struct timezone *tzp)
.fi
.ft R
.SH DESCRIPTION
.B Gettimeofday
returns the time in seconds and microseconds since epoch in GMT
(midnight, january 1st, 1970). The timezone argument tzp is expected
to be NULL.
.SH RETURNS
0 on success, -1 on error. If -1 is returned, errno is set to indicate
the error.
.SH "SEE ALSO
.BR ctime (3).
0