]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
ctime.3, strptime.3, time.7: Refer to tm(3type)
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 15 Jun 2022 20:06:34 +0000 (22:06 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Thu, 16 Jun 2022 16:19:02 +0000 (18:19 +0200)
Instead of repeating the documentation of tm(3type) in pages that
use it, just refer to it.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3/ctime.3
man3/strptime.3
man7/time.7

index f10b08f4206bd6f909f2675f93abeeed93307b4c..d228bdc2173fac4a790e840cff93e4502db2184b 100644 (file)
@@ -72,58 +72,10 @@ functions both take an argument
 representing broken-down time, which is a representation
 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:
-.PP
-.in +4n
-.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_isdst;  /* Daylight saving time */
-};
-.EE
-.in
-.PP
-The members of the \fItm\fP structure are:
-.TP 10
-.I tm_sec
-The number of seconds after the minute, normally in the range 0 to 59,
-but can be up to 60 to allow for leap seconds.
-.TP
-.I tm_min
-The number of minutes after the hour, in the range 0 to 59.
-.TP
-.I tm_hour
-The number of hours past midnight, in the range 0 to 23.
-.TP
-.I tm_mday
-The day of the month, in the range 1 to 31.
-.TP
-.I tm_mon
-The number of months since January, in the range 0 to 11.
-.TP
-.I tm_year
-The number of years since 1900.
-.TP
-.I tm_wday
-The number of days since Sunday, in the range 0 to 6.
-.TP
-.I tm_yday
-The number of days since January 1, in the range 0 to 365.
-.TP
-.I tm_isdst
-A flag that indicates whether daylight saving time is in effect at the
-time described.
-The value is positive if daylight saving time is in
-effect, zero if it is not, and negative if the information is not
-available.
+Broken-down time is stored in the structure
+.IR tm ,
+described in
+.BR tm (3type).
 .PP
 The call
 .BI ctime( t )
index 55a4144f79373c627a7b26fc337a8c6c497bb347..edf272d70c6fbcf097294cc7fab9607cb2050325 100644 (file)
@@ -38,30 +38,8 @@ using the format specified by
 .PP
 The broken-down time structure
 .I tm
-is defined in
-.I <time.h>
-as follows:
-.PP
-.in +4n
-.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_isdst;  /* Daylight saving time */
-};
-.EE
-.in
-.PP
-For more details on the
-.I tm
-structure, see
-.BR ctime (3).
+is described in
+.BR tm (3type).
 .PP
 The
 .I format
index 6339f1610ad79ce0e0a75e12d481e91aa7b4f15f..4bdb2f419610f31c0ff74bc79e9216f3c4f03e54 100644 (file)
@@ -141,7 +141,7 @@ to represent
 which stores time value separated out into distinct components
 (year, month, day, hour, minute, second, etc.).
 This structure is described in
-.BR ctime (3),
+.BR tm (3type),
 which also describes functions that convert between calendar time and
 broken-down time.
 Functions for converting between broken-down time and printable