update for NFS fields (from Rick Macklem)
[unix-history] / usr / src / include / time.h
CommitLineData
7320c7cd 1/*
976fe643
KB
2 * Copyright (c) 1989 The Regents of the University of California.
3 * All rights reserved.
7320c7cd 4 *
976fe643
KB
5 * Redistribution and use in source and binary forms are permitted
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16 *
17 * @(#)time.h 5.1 (Berkeley) %G%
7320c7cd 18 */
86d83cf3 19
86d83cf3 20struct tm {
976fe643
KB
21 int tm_sec; /* seconds after the minute [0-60] */
22 int tm_min; /* minutes after the hour [0-59] */
23 int tm_hour; /* hours since midnight [0-23] */
24 int tm_mday; /* day of the month [1-31] */
25 int tm_mon; /* months since January [0-11] */
26 int tm_year; /* years since 1900 */
27 int tm_wday; /* days since Sunday [0-6] */
28 int tm_yday; /* days since January 1 [0-365] */
29 int tm_isdst; /* Daylight Savings Time flag */
30 long tm_gmtoff; /* offset from CUT in seconds */
31 char *tm_zone; /* timezone abbreviation */
86d83cf3
KM
32};
33
976fe643
KB
34void tzset();
35struct tm *gmtime(), *localtime();
36char *asctime(), *ctime(), *timezone();