📄 time.h
字号:
/* time.h
Struct and function declarations for dealing with time.
Copyright (c) Borland International 1987,1988,1990,1991
All Rights Reserved.
*/
#ifndef __TIME_H
#define __TIME_H
#ifdef __DLL__
#define _FAR far
#else
#define _FAR
#endif
#if __STDC__
#define _Cdecl
#else
#define _Cdecl cdecl
#endif
#ifndef __PAS__
#define _CType _Cdecl
#else
#define _CType pascal
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned size_t;
#endif
#ifndef _TIME_T
#define _TIME_T
typedef long time_t;
#endif
#ifndef _CLOCK_T
#define _CLOCK_T
typedef long clock_t;
#define CLOCKS_PER_SEC 18.2
#define CLK_TCK 18.2
#endif
struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
#ifdef __cplusplus
extern "C" {
#endif
char _FAR * _Cdecl asctime(const struct tm _FAR *__tblock);
char _FAR * _Cdecl ctime(const time_t _FAR *__time);
double _Cdecl difftime(time_t __time2, time_t __time1);
struct tm _FAR * _Cdecl gmtime(const time_t _FAR *__timer);
struct tm _FAR * _Cdecl localtime(const time_t _FAR *__timer);
time_t _Cdecl time(time_t _FAR *__timer);
time_t _Cdecl mktime(struct tm _FAR *__timeptr);
clock_t _Cdecl clock(void);
size_t _Cdecl strftime(char _FAR *__s, size_t __maxsize,
const char _FAR *__fmt, const struct tm _FAR *__t);
#if !__STDC__
extern int _Cdecl daylight;
extern long _Cdecl timezone;
extern char _FAR * const _Cdecl tzname[2];
int _Cdecl stime(time_t _FAR *__tp);
void _Cdecl tzset(void);
#endif
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -