struct tm

struct tm
在标准C/C++中,我们可通过tm结构来获得日期和时间,tm结构在time.h中的定义如下:
#ifndef _TM_DEFINED
struct tm
int tm_sec; /* 秒 – 取值区间为;
#define _TM_DEFINED