linux下用C怎么取得当前时间?
/*
* 取得本地的时间格式的结构体
*/
typedef struct time_l
{
int time;
short timezone; /*目前时区与Greenwich相差的时间,单位为分*/
unsigned short mil;[……]
/*
* 取得本地的时间格式的结构体
*/
typedef struct time_l
{
int time;
short timezone; /*目前时区与Greenwich相差的时间,单位为分*/
unsigned short mil;[……]