tmdate(1): document tz field
This commit is contained in:
parent
732082c095
commit
26cf6ec073
1 changed files with 13 additions and 13 deletions
|
@ -11,19 +11,21 @@ tmnow, tzload, tmtime, tmparse, tmfmt, tmnorm - convert date and time
|
||||||
.EX
|
.EX
|
||||||
typedef struct Tm Tm;
|
typedef struct Tm Tm;
|
||||||
typedef struct Tmfmt Tmfmt;
|
typedef struct Tmfmt Tmfmt;
|
||||||
|
typedef struct Tzone Tzone;
|
||||||
|
|
||||||
struct Tm {
|
struct Tm {
|
||||||
int nsec; /* nanoseconds (range 0..1e9) */
|
int nsec; /* nanoseconds (range 0..1e9) */
|
||||||
int sec; /* seconds (range 0..59) */
|
int sec; /* seconds (range 0..59) */
|
||||||
int min; /* minutes (0..59) */
|
int min; /* minutes (0..59) */
|
||||||
int hour; /* hours (0..23) */
|
int hour; /* hours (0..23) */
|
||||||
int mday; /* day of the month (1..31) */
|
int mday; /* day of the month (1..31) */
|
||||||
int mon; /* month of the year (0..11) */
|
int mon; /* month of the year (0..11) */
|
||||||
int year; /* C.E year - 1900 */
|
int year; /* C.E year - 1900 */
|
||||||
int wday; /* day of week (0..6, Sunday = 0) */
|
int wday; /* day of week (0..6, Sunday = 0) */
|
||||||
int yday; /* day of year (0..365) */
|
int yday; /* day of year (0..365) */
|
||||||
char zone[]; /* time zone name */
|
char zone[]; /* time zone name */
|
||||||
int tzoff; /* time zone delta from GMT, seconds */
|
int tzoff; /* time zone delta from GMT, seconds */
|
||||||
|
Tzone *tz; /* the time zone (optional) */
|
||||||
};
|
};
|
||||||
|
|
||||||
Tzone *tzload(char *name);
|
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,
|
Any characters not specified above are copied directly to output,
|
||||||
without modification.
|
without modification.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
If the format argument is nil, it makes an
|
If the format argument is nil, it makes an
|
||||||
attempt to parse common human readable date formats. These
|
attempt to parse common human readable date formats. These
|
||||||
|
|
Loading…
Reference in a new issue