请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
您好,希望从特定已知偏移量(如1970年1月1日 或2000年1月1日)访问编译时间(以秒为单位)。 例如,等效于
#define __compend_Time_1646210916
其中,该数字与1970年1月1日 (UNIX 时间)后的秒数相对应。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好,希望从特定已知偏移量(如1970年1月1日 或2000年1月1日)访问编译时间(以秒为单位)。 例如,等效于
#define __compend_Time_1646210916
其中,该数字与1970年1月1日 (UNIX 时间)后的秒数相对应。
谢谢。 我找到了此解决方案 批:时间戳到 UNIX 时间-堆栈溢出 ,并使用 JavaScript (Time.js)解决方案和预构建事件生成带有时间戳的头文件。可处理。