📄 time2str.c
字号:
#include <stdlib.h>#include <string.h>#include <sys/time.h>voidtime2str(const time_t clock, char *s){ struct tm tm; if (s == NULL) return; bzero(&tm, sizeof(struct tm)); //将 tm 当中的值清为0 time2tm(clock, &tm); tm2str(&tm, s);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -