c語言獲取時間

c語言獲取時間 strftime 格式化時間的函數 #include<stdio.h> #include<time.h> int main(int argc,char **argv) { char buf[32]; time_t tmp=time(NULL); strftime(buf,32,"%Y-%m-%d %H:%M:%S",localt
相關文章
相關標籤/搜索