Penguin
Annotated edit history of ftime(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 FTIME
2 !!!FTIME
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 BUGS
8 HISTORY
9 CONFORMING TO
10 NOTE
11 SEE ALSO
12 ----
13 !!NAME
14
15
16 ftime - return date and time
17 !!SYNOPSIS
18
19
20 __#include __
21
22
23 __int ftime(struct timeb
24 *__''tp''__);__
25 !!DESCRIPTION
26
27
28 Return current date and time in ''tp'', which is declared
29 as following:
30
31
32 struct timeb {
33 time_t time;
34 unsigned short millitm;
35 short timezone;
36 short dstflag;
37 };
38
39
40 The structure contains the time since the epoch in seconds,
41 up to 1000 milliseconds of more-precise interval, the local
42 time zone (measured in minutes of time westward from
43 Greenwich), and a flag that, if nonzero, indicates that
44 Daylight Saving time applies locally during the appropriate
45 part of the year.
46 !!RETURN VALUE
47
48
49 This function always returns 0.
50 !!BUGS
51
52
53 Under libc4 and libc5 the millitm field is meaningful. But
54 glibc2 is buggy and returns 0 there; glibc 2.1.1 is correct
55 again.
56 !!HISTORY
57
58
59 The ''ftime'' function appeared in 4.2BSD.
60 !!CONFORMING TO
61
62
63 BSD 4.2
64 !!NOTE
65
66
67 This call is obsoleted by
68 gettimeofday(2).
69 !!SEE ALSO
70
71
72 time(2)
73 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.