summaryrefslogtreecommitdiff
path: root/v4.0/src/TOOLS/BLD/INC/TIME.H
diff options
context:
space:
mode:
authorGravatar Mark Zbikowski2024-04-25 21:24:10 +0100
committerGravatar Microsoft Open Source2024-04-25 22:32:27 +0000
commit2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch)
tree80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/TOOLS/BLD/INC/TIME.H
parentMerge pull request #430 from jpbaltazar/typoptbr (diff)
downloadms-dos-main.tar.gz
ms-dos-main.tar.xz
ms-dos-main.zip
MZ is back!HEADmain
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/TIME.H')
-rw-r--r--v4.0/src/TOOLS/BLD/INC/TIME.H75
1 files changed, 75 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/TIME.H b/v4.0/src/TOOLS/BLD/INC/TIME.H
new file mode 100644
index 0000000..d9a1681
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/TIME.H
@@ -0,0 +1,75 @@
1/***
2*time.h - definitions/declarations for time routines
3*
4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* This file has declarations of time routines and defines
8* the structure returned by the localtime and gmtime routines and
9* used by asctime.
10* [ANSI/System V]
11*
12*******************************************************************************/
13
14
15#ifndef NO_EXT_KEYS /* extensions enabled */
16 #define _CDECL cdecl
17 #define _NEAR near
18#else /* extensions not enabled */
19 #define _CDECL
20 #define _NEAR
21#endif /* NO_EXT_KEYS */
22
23
24/* define the implementation defined time type */
25
26#ifndef _TIME_T_DEFINED
27typedef long time_t; /* time value */
28#define _TIME_T_DEFINED /* avoid multiple def's of time_t */
29#endif
30
31#ifndef _CLOCK_T_DEFINED
32typedef long clock_t;
33#define _CLOCK_T_DEFINED
34#endif
35
36#ifndef _TM_DEFINED
37struct tm {
38 int tm_sec; /* seconds after the minute - [0,59] */
39 int tm_min; /* minutes after the hour - [0,59] */
40 int tm_hour; /* hours since midnight - [0,23] */
41 int tm_mday; /* day of the month - [1,31] */
42 int tm_mon; /* months since January - [0,11] */
43 int tm_year; /* years since 1900 */
44 int tm_wday; /* days since Sunday - [0,6] */
45 int tm_yday; /* days since January 1 - [0,365] */
46 int tm_isdst; /* daylight savings time flag */
47 };
48#define _TM_DEFINED
49#endif
50
51#define CLK_TCK 1000
52
53
54/* extern declarations for the global variables used by the ctime family of
55 * routines.
56 */
57
58extern int _NEAR _CDECL daylight; /* non-zero if daylight savings time is used */
59extern long _NEAR _CDECL timezone; /* difference in seconds between GMT and local time */
60extern char * _NEAR _CDECL tzname[2]; /* standard/daylight savings time zone names */
61
62
63/* function prototypes */
64
65char * _CDECL asctime(const struct tm *);
66char * _CDECL ctime(const time_t *);
67clock_t _CDECL clock(void);
68double _CDECL difftime(time_t, time_t);
69struct tm * _CDECL gmtime(const time_t *);
70struct tm * _CDECL localtime(const time_t *);
71time_t _CDECL mktime(struct tm *);
72char * _CDECL _strdate(char *);
73char * _CDECL _strtime(char *);
74time_t _CDECL time(time_t *);
75void _CDECL tzset(void);