IdeaUI中的Copyright变量

Use this text area to view or edit the copyright notice to be generated. A copyright profile can contain an explicit plain text of the copyright notice or its definition through a Velocity template.

Currently the following variables are available in the Velocity context:

Name Type Comment
$today DateInfo The current date and time.
$file.fileName String The name of the currently opened file where the notice is to be generated.
$file.pathName String The complete path and name of the currently opened file where the notice is to be generated.
$file.className String The name of the currently opened Java file where the notice is to be generated.
$file.qualifiedClassName String The fully qualified name of the currently opened file where the notice is to be generated.
$file.lastModified DateInfo The date and time when the current file was last changed.
$project.name String The name of the current project.
$module.name String The name of the current module.
$username String The name of the current user.
DateInfo has the following properties:
year int The current year.
month int The current month (1-12).
day int The current date of month (1-31).
hour int The current hour (0-11).
hour24 int The current hour (0-23).
minute int The current minute of the hour (0-59).
second int The current second of the minute (0-59).
DateInfo has the following method:
format(String format) String Date and time formats that are specified by date and time pattern strings. See java.text.SimpleDateFormat format options.

关于Zeno Chen

本人涉及的领域较多,杂而不精 程序设计语言: Perl, Java, PHP, Python; 数据库系统: MySQL,Oracle; 偶尔做做电路板的开发,主攻STM32单片机
此条目发表在Java分类目录。将固定链接加入收藏夹。