time.h

来自「EMU_FTAbox_ref441328_code_source ali m33」· C头文件 代码 · 共 52 行

H
52
字号

/****************************************************************************
*
*  ALi 
*
*  File: time.h
*
*  Description: 
*             
*  History:
*      Date        		Author         	Version   	Comment
*      ====        	      ======         	=======   	=======
*  		
*
****************************************************************************/

#ifndef __LIB_C_TIME_H__
#define __LIB_C_TIME_H__


typedef	long	time_t;

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

time_t time(time_t *t);
void setime(time_t t);
struct tm *gmtime_r(const time_t *tim_p, struct tm * res);
time_t mktime(struct tm * tim_p);


#ifdef __cplusplus
}
#endif

#endif /* __LIB_C_TIME_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?