diff --git a/当前时间的获取.c b/当前时间的获取.c new file mode 100644 index 0000000..4b3c0aa --- /dev/null +++ b/当前时间的获取.c @@ -0,0 +1,13 @@ +#include +#include +int main () +{ + time_t t; + struct tm * lt; + time (&t); + lt = localtime (&t); + printf ( "ǣ%d/%d/%d %d:%d:%d\n",lt->tm_year+1900, lt->tm_mon+2, lt->tm_mday, lt->tm_hour, lt->tm_min, lt->tm_sec); + if(lt->tm_mon+1>0&<->tm_mon+1<5) + printf("\nҹˣ˯"); + return 0; +} diff --git a/当前时间的获取.exe b/当前时间的获取.exe new file mode 100644 index 0000000..e9377ab Binary files /dev/null and b/当前时间的获取.exe differ