summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-09-12 17:36:14 -0700
committerOri Bernstein <ori@eigenstate.org>2020-09-12 17:36:14 -0700
commit26cf6ec073ad60db465fc4395b783bdb04071877 (patch)
treee771ca5c69f45b5cb053aca533595ff9fe4ad67b /sys/man
parent732082c0951ca080de05608a0b6464ca699da61d (diff)
tmdate(1): document tz field
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/2/tmdate26
1 files 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