XCode Template <<日期>>格式
-
22-09-2019 - |
题
我正在工作一个自定义Xcode模板,我想更改方式 <<date>>
格式化。
例如:
// Created by «FULLUSERNAME» on «DATE».
// Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
如果今天创建文件将填充为:
// Created by SooDesuNe on 2/24/2010.
// Copyright 2010 MyOrganization. All rights reserved.
以任何“所有数字”格式格式化的日期都会引起很多混乱,因为ISO和JIS编写同一日期的方式为24/2/2010。很明显在一个月的第24天,但在本月的前12天不清楚。
我希望X代码填充 <<date>>
喜欢:
// Created by SooDesuNe on 24-Feb-2010.
// Copyright 2010 MyOrganization. All rights reserved.
由于没有这种方式的歧义。有人知道如何更改日期格式吗?
解决方案
defaults write com.apple.dt.xcode AppleICUDateFormatStrings '{ 1 = "d-MMM-y"; }'
其他提示
您只需更改在系统首选项中显示的时间的简短格式。
不隶属于 StackOverflow