#include<stdio.h>
#include<time.h>
int main()
{
int seconds = time(NULL);
int s = seconds % 60;
int h = (seconds / 3600 + 8) % 24;
int m = seconds / 60 % 60;
printf("%02d:%02d:%02d", h, m, s);
return 0;
}
C语言—打印当前电脑时间
于 2024-02-27 08:10:30 首次发布