C库函数-strftime()-C语言实例教程|
来源:网络
编辑:落秋
时间:2022-06-19
C库函数 - strftime()
#include <stdio.h> #include <time.h> int main () { time_t rawtime; struct tm *info; char buffer[80]; time( &rawtime ); info = localtime( &rawtime ); strftime(buffer,80,"%x - %I:%M%p", info); printf("Formatted date & time : |%s| ", buffer ); return(0); }
相关文章:
栏目分类
最新文章