ctime.c
来自「关于日期使用的经典C代码」· C语言 代码 · 共 13 行
C
13 行
#include <stdio.h>
#include <time.h>
void main (void)
{
time_t current_time;
time(¤t_time); // Get the time in seconds;
printf("The current date and time: %s",
ctime(¤t_time));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?