From 26cf6ec073ad60db465fc4395b783bdb04071877 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sat, 12 Sep 2020 17:36:14 -0700 Subject: [PATCH] tmdate(1): document tz field --- sys/man/2/tmdate | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sys/man/2/tmdate b/sys/man/2/tmdate index f412971a8..e4123c3e1 100644 --- a/sys/man/2/tmdate +++ b/sys/man/2/tmdate @@ -11,19 +11,21 @@ tmnow, tzload, tmtime, tmparse, tmfmt, tmnorm - convert date and time .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); @@ -153,8 +155,6 @@ which would get normalized to February 1st. Any characters not specified above are copied directly to output, without modification. - - .PP If the format argument is nil, it makes an attempt to parse common human readable date formats. These