⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strftim.c

📁 一个C源代码分析器
💻 C
字号:
#include <time.h>#include <stdio.h>#define SIZE 256intmain (void){  char buffer[SIZE];  time_t curtime;  struct tm *loctime;  /* Get the current time. */  curtime = time (NULL);  /* Convert it to local time representation. */  loctime = localtime (&curtime);  /* Print out the date and time in the standard format. */  fputs (asctime (loctime), stdout);/*@group*/  /* Print it out in a nice format. */  strftime (buffer, SIZE, "Today is %A, %B %d.\n", loctime);  fputs (buffer, stdout);  strftime (buffer, SIZE, "The time is %I:%M %p.\n", loctime);  fputs (buffer, stdout);  return 0;}/*@end group*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -