]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/ctime.3
Removed trailing white space at end of lines
[thirdparty/man-pages.git] / man3 / ctime.3
index 4d0794017d91c28e4f8207b429b511bd0ddb76c3..73e75d3010604f6237b5baf91c50e63ffd8a79e3 100644 (file)
@@ -32,7 +32,7 @@
 .\" Modified 2001-12-13, joey, aeb
 .\" Modified 2004-11-16, mtk
 .\"
-.TH CTIME 3 2016-12-12 "" "Linux Programmer's Manual"
+.TH CTIME 3 2019-03-06 "" "Linux Programmer's Manual"
 .SH NAME
 asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r,
 localtime_r \- transform date and time to broken-down time or ASCII
@@ -41,19 +41,15 @@ localtime_r \- transform date and time to broken-down time or ASCII
 .B #include <time.h>
 .PP
 .BI "char *asctime(const struct tm *" tm );
-.br
 .BI "char *asctime_r(const struct tm *" tm ", char *" buf );
 .PP
 .BI "char *ctime(const time_t *" timep );
-.br
 .BI "char *ctime_r(const time_t *" timep ", char *" buf );
 .PP
 .BI "struct tm *gmtime(const time_t *" timep );
-.br
 .BI "struct tm *gmtime_r(const time_t *" timep ", struct tm *" result );
 .PP
 .BI "struct tm *localtime(const time_t *" timep );
-.br
 .BI "struct tm *localtime_r(const time_t *" timep ", struct tm *" result );
 .PP
 .BI "time_t mktime(struct tm *" tm );
@@ -95,21 +91,21 @@ separated into year, month, day, and so on.
 .PP
 Broken-down time is stored
 in the structure \fItm\fP, which is defined in \fI<time.h>\fP as follows:
-.sp
+.PP
 .in +4n
-.nf
+.EX
 struct tm {
-    int tm_sec;    /* Seconds (0-60) */
-    int tm_min;    /* Minutes (0-59) */
-    int tm_hour;   /* Hours (0-23) */
-    int tm_mday;   /* Day of the month (1-31) */
-    int tm_mon;    /* Month (0-11) */
-    int tm_year;   /* Year - 1900 */
-    int tm_wday;   /* Day of the week (0-6, Sunday = 0) */
-    int tm_yday;   /* Day in the year (0-365, 1 Jan = 0) */
+    int tm_sec;    /* Seconds (0\-60) */
+    int tm_min;    /* Minutes (0\-59) */
+    int tm_hour;   /* Hours (0\-23) */
+    int tm_mday;   /* Day of the month (1\-31) */
+    int tm_mon;    /* Month (0\-11) */
+    int tm_year;   /* Year \- 1900 */
+    int tm_wday;   /* Day of the week (0\-6, Sunday = 0) */
+    int tm_yday;   /* Day in the year (0\-365, 1 Jan = 0) */
     int tm_isdst;  /* Daylight saving time */
 };
-.fi
+.EE
 .in
 .PP
 The members of the \fItm\fP structure are:
@@ -152,11 +148,13 @@ is equivalent to
 .BI asctime(localtime( t )) \fR.
 It converts the calendar time \fIt\fP into a
 null-terminated string of the form
-.sp
-.RS
-"Wed Jun 30 21:49:08 1993\\n"
-.RE
-.sp
+.PP
+.in +4n
+.EX
+"Wed Jun 30 21:49:08 1993\en"
+.EE
+.in
+.PP
 The abbreviations for the days of the week are "Sun", "Mon", "Tue", "Wed",
 "Thu", "Fri", and "Sat".
 The abbreviations for the months are "Jan",
@@ -402,20 +400,19 @@ a broken-down time structure and an array of type
 Execution of any of the functions may overwrite the information returned
 in either of these objects by any of the other functions."
 This can occur in the glibc implementation.
-.LP
+.PP
 In many implementations, including glibc, a 0 in
 .I tm_mday
 is interpreted as meaning the last day of the preceding month.
-.LP
+.PP
 The glibc version of \fIstruct tm\fP has additional fields
-.sp
-.RS
-.nf
-long tm_gmtoff;           /* Seconds east of UTC */
+.PP
+.in +4n
+.EX
 const char *tm_zone;      /* Timezone abbreviation */
-.fi
-.RE
-.sp
+.EE
+.in
+.PP
 defined when
 .B _BSD_SOURCE
 was set before including