How to set the Eclipse date variable format?

后端 未结 4 1605
北荒
北荒 2020-12-08 06:41

How can I set the format for the ${date} variable which can be used in Eclipse templates?

4条回答
  •  长情又很酷
    2020-12-08 07:22

    You could tell Eclipse to use a specific locale different from that of your operating system. Eclipse 3.5 (64 bit) doesn't use the MacOS X region setting. MacOS X english installation language with Germany as country provides a wrong date format.

    You can fix it for your Eclipse installation when you append following lines to your eclipse.ini:

    -Duser.language=de
    -Duser.region=DE
    

提交回复
热议问题