Changed SYNOPSIS. <sys/types.h> need never be included as <time.h>
defines time_t too.
This commit is contained in:
parent
9348a457d5
commit
13a7571fde
@ -32,7 +32,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" from: @(#)ctime.3 6.15 (Berkeley) 4/19/91
|
.\" from: @(#)ctime.3 6.15 (Berkeley) 4/19/91
|
||||||
.\" $Id: ctime.3,v 1.2 1993/07/30 08:35:29 mycroft Exp $
|
.\" $Id: ctime.3,v 1.3 1993/10/04 18:28:59 jtc Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd April 19, 1991
|
.Dd April 19, 1991
|
||||||
.Dt CTIME 3
|
.Dt CTIME 3
|
||||||
@ -47,13 +47,11 @@
|
|||||||
.Nd transform binary date and time value to
|
.Nd transform binary date and time value to
|
||||||
.Tn ASCII
|
.Tn ASCII
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Fd #include <sys/types.h>
|
.Fd #include <time.h>
|
||||||
.Vt extern char *tzname[2];
|
|
||||||
.Ft char *
|
.Ft char *
|
||||||
.Fn ctime "const time_t *clock"
|
.Fn ctime "const time_t *clock"
|
||||||
.Ft double
|
.Ft double
|
||||||
.Fn difftime "time_t time1" "time_t time0"
|
.Fn difftime "time_t time1" "time_t time0"
|
||||||
.Fd #include <time.h>
|
|
||||||
.Ft char *
|
.Ft char *
|
||||||
.Fn asctime "const struct tm *tm"
|
.Fn asctime "const struct tm *tm"
|
||||||
.Ft struct tm *
|
.Ft struct tm *
|
||||||
@ -62,6 +60,7 @@
|
|||||||
.Fn gmtime "const time_t *clock"
|
.Fn gmtime "const time_t *clock"
|
||||||
.Ft time_t
|
.Ft time_t
|
||||||
.Fn mktime "struct tm *tm"
|
.Fn mktime "struct tm *tm"
|
||||||
|
.Vt extern char *tzname[2];
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The functions
|
The functions
|
||||||
.Fn ctime ,
|
.Fn ctime ,
|
||||||
|
Loading…
Reference in New Issue
Block a user