简体   繁体   English

如何自定义SVN日期格式

[英]How to customize svn date format

I want to use $Date$ for the autoset property during check-in, but want to have a means to modify its format. 我想在签入期间将$Date$用作autoset属性,但希望有一种方法来修改其格式。 I just need to include the year information. 我只需要包含年份信息。

$Date: 2015-06-05 00:49:43 -0700 (Fri, 05 Jun 2015) $:

Can this be done through svn settings, or a custom property. 可以通过svn设置或自定义属性来完成此操作。

$Date: 2015 $

Using custom keywords you can choose to use short format of date with %d format code. 使用自定义关键字,您可以选择对%d格式代码使用短格式日期。 There is no format code for year only. 仅年份没有格式代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM