问题描述
游戏具有:
A game has this:
我很好奇这是否是实际的构建时间,并且确定, Crysis.exe
('File Last Modified'程序) 03/31/2009,01:40
。
I'm curious to whether this was the actual build time, and sure enough, the 'File Last Modified' date of Crysis.exe
(the program) is 03/31/2009, 01:40
.
当然,开发人员很容易手动输入该值,并在一分钟内构建应用程序,但我很好奇,是否实际可能输入当前的日期/时间(到最近的秒),当应用程序实际上构建。
Sure, the developer could easily have manually inputted that value, and built the application in under a minute, but I'm curious to whether it is actually possible to input the current date/time (to the nearest second) when the application is actually building.
这将有许多优点,包括容易识别应用程序的不同构建。
This would have many advantages, including easy identification of different builds of the application.
这是否可能?
推荐答案
是的,构建的时间由 __ TIME __
宏提供。在您的示例中,他们还使用提供日期的 __ DATE __
宏。
Yes the time of built is provided by the __TIME__
macro. In your example they also use __DATE__
macro which provides the date.
这篇关于是否可以将构建时间插入到应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!