荣耀4a全网通:用c语言怎么得到系统日期
来源:百度文库 编辑:查人人中国名人网 时间:2024/06/16 05:15:38
用c语言怎么得到系统日期
#include <time.h>
#include <stdio.h>
void main( void )
{
struct tm when;
time_t now, result;
int days;
time( &now );
when = *localtime( &now );
printf( "Current time is %s\n", asctime( &when ) );
}