统一差异中时间戳的用途是什么?

统一差异中时间戳的用途是什么?

统一格式示例:

--- lao 2002-02-21 23:30:39.942229878 -0800
+++ tzu 2002-02-21 23:30:50.442260588 -0800
@@ -1,7 +1,6 @@
-The Way that can be told of is not the eternal Way;
-The name that can be named is not the eternal name.
 The Nameless is the origin of Heaven and Earth;
-The Named is the mother of all things.
+The named is the mother of all things.
+
 Therefore let there always be non-being,
   so we may see their subtlety,
 And let there always be being,
@@ -9,3 +8,6 @@
 The two are the same,
 But after they are produced,
   they have different names.
+They both may be called deep and profound.
+Deeper and more profound,
+The door of all subtleties!

2002-02-21 23:30:39.942229878 -0800文件名后面出现的时间戳(例如 )的用途是什么?它们是强制性的吗?我可以安全地移除它们吗?伪造时间(例如使用未来时间)会产生什么后果?

答案1

文件名后面出现的时间戳(例如 2002-02-21 23:30:39.942229878 -0800)的用途是什么?

了解文件何时被更改。同步处理同一项目的不同人员的文件时间戳。

它们是强制性的吗?我可以安全地移除它们吗?

不,是的。

伪造时间(例如使用未来时间)会产生什么后果?

据我所知,没有一个。还要man patch检查-Z or --set-utc

相关内容