linux系统下的获取系统时间并转为年月日格式#include<time.h>#include<stdio.h>int main(void){struct tm * timenow;time_t secondtime(0);timenowlocaltime(7月前1040