Stella981· 1421 阅读 ·2021-10-11 # 前端# include# 时间戳# unix# unix时间C 获取当前日期时间并转换UNIX时间戳 获取当前日期时间并转换UNIX时间戳,废话就不多讲了,直接上代码,代码也比较简单,只是起到一个记录的作用,所以代码中就不带注释了.include <stdio.h / puts /include <time.h / time_t, struct tm, time, localtime, strftim