shithub: riscv

Download patch

ref: 26cf6ec073ad60db465fc4395b783bdb04071877
parent: 732082c0951ca080de05608a0b6464ca699da61d
author: Ori Bernstein <[email protected]>
date: Sat Sep 12 13:36:14 EDT 2020

tmdate(1): document tz field

--- a/sys/man/2/tmdate
+++ b/sys/man/2/tmdate
@@ -11,19 +11,21 @@
 .EX
 typedef struct Tm Tm;
 typedef struct Tmfmt Tmfmt;
+typedef struct Tzone Tzone;
 
 struct Tm {
-	int	nsec;	/* nanoseconds (range 0..1e9) */
-	int	sec;	/* seconds (range 0..59) */
-	int	min;	/* minutes (0..59) */
-	int	hour;	/* hours (0..23) */
-	int	mday;	/* day of the month (1..31) */
-	int	mon;	/* month of the year (0..11) */
-	int	year;	/* C.E year - 1900 */
-	int	wday;	/* day of week (0..6, Sunday = 0) */
-	int	yday;	/* day of year (0..365) */
-	char	zone[];	/* time zone name */
-	int	tzoff;	/* time	zone delta from GMT, seconds */
+	int     nsec;    /* nanoseconds (range 0..1e9) */
+	int     sec;     /* seconds (range 0..59) */
+	int     min;     /* minutes (0..59) */
+	int     hour;    /* hours (0..23) */
+	int     mday;    /* day of the month (1..31) */
+	int     mon;     /* month of the year (0..11) */
+	int     year;    /* C.E year - 1900 */
+	int     wday;    /* day of week (0..6, Sunday = 0) */
+	int     yday;    /* day of year (0..365) */
+	char    zone[];  /* time zone name */
+	int     tzoff;   /* time zone delta from GMT, seconds */
+	Tzone  *tz;      /* the time zone (optional) */
 };
 
 Tzone *tzload(char *name);
@@ -152,8 +154,6 @@
 .PP
 Any characters not specified above are copied directly to output,
 without modification.
-
-
 
 .PP
 If the format argument is nil, it makes an