Rev | Line | |
---|
[9] | 1 | .TH GETTIMEOFDAY 2 "July 6, 2005"
|
---|
| 2 | .UC 4
|
---|
| 3 | .SH NAME
|
---|
| 4 | gettimeofday \- get date and time
|
---|
| 5 | .SH SYNOPSIS
|
---|
| 6 | .ft B
|
---|
| 7 | .nf
|
---|
| 8 | #include <sys/time.h>
|
---|
| 9 |
|
---|
| 10 | int gettimeofday(struct timeval *tp, struct timezone *tzp)
|
---|
| 11 | .fi
|
---|
| 12 | .ft R
|
---|
| 13 | .SH DESCRIPTION
|
---|
| 14 | .B Gettimeofday
|
---|
| 15 | returns the time in seconds and microseconds since epoch in GMT
|
---|
| 16 | (midnight, january 1st, 1970). The timezone argument tzp is expected
|
---|
| 17 | to be NULL.
|
---|
| 18 | .SH RETURNS
|
---|
| 19 | 0 on success, -1 on error. If -1 is returned, errno is set to indicate
|
---|
| 20 | the error.
|
---|
| 21 | .SH "SEE ALSO
|
---|
| 22 | .BR ctime (3).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.