Commit | Line | Data |
---|---|---|
969f1988 KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
0eca0ee5 | 5 | .\" @(#)ftime.3 6.2 (Berkeley) %G% |
969f1988 | 6 | .\" |
0eca0ee5 | 7 | .TH FTIME 3C "" |
969f1988 KM |
8 | .UC 4 |
9 | .SH NAME | |
0eca0ee5 | 10 | ftime \- get date and time |
969f1988 KM |
11 | .SH SYNOPSIS |
12 | .nf | |
969f1988 KM |
13 | .B #include <sys/types.h> |
14 | .B #include <sys/timeb.h> | |
0eca0ee5 | 15 | |
969f1988 KM |
16 | .B ftime(tp) |
17 | .B struct timeb *tp; | |
18 | .fi | |
19 | .SH DESCRIPTION | |
ac4c1774 | 20 | .ft B |
0eca0ee5 KB |
21 | This interface is obsoleted by gettimeofday(2). |
22 | .br | |
23 | It is available from the compatibility library, libcompat. | |
ac4c1774 KM |
24 | .ft R |
25 | .PP | |
969f1988 KM |
26 | The |
27 | .I ftime | |
0eca0ee5 | 28 | routine fills in a structure pointed to by its argument, |
969f1988 | 29 | as defined by |
ac4c1774 | 30 | .RI < sys/timeb.h >: |
969f1988 KM |
31 | .PP |
32 | .ta .5i +\w'unsigned 'u | |
33 | .nf | |
34 | .so /usr/include/sys/timeb.h | |
35 | .fi | |
36 | .PP | |
37 | The structure contains the time since the epoch in seconds, | |
38 | up to 1000 milliseconds of more-precise interval, | |
39 | the local time zone (measured in minutes of time westward from Greenwich), | |
40 | and a flag that, if nonzero, indicates that | |
41 | Daylight Saving time applies locally during the appropriate part of the year. | |
42 | .SH "SEE ALSO" | |
0eca0ee5 | 43 | gettimeofday(2), settimeofday(2), time(2), ctime(3) |